

/* ============================= */
/* CART / MINI CART / CHECKOUT */
/* ============================= */

.altanz-meta-line strong {
    display: block;
    color: #1f2a44;
    font-weight: 500;
    margin-bottom: 2px;
}

.altanz-meta-price {
    display: block;
    margin-top: 2px;
    font-weight: 500;
    color: #1f2a44;
}

.woocommerce-cart-form .product-name a {
    display: block;
    margin-bottom: 6px;
}

.woocommerce-mini-cart-item .quantity {
    margin-top: 6px;
}


/* ============================= */
/* REMOVE DEFAULT WOO META */
/* ============================= */

.woocommerce-mini-cart-item dl,
.woocommerce-cart-form dl,
.woocommerce-checkout-review-order dl {
    display: none !important;
}


/* ============================= */
/* SAFETY WRAPPING */
/* ============================= */

.woocommerce-cart-form .product-name,
.woocommerce-checkout-review-order .product-name,
.woocommerce-mini-cart-item {
    word-break: break-word;
    overflow-wrap: anywhere;
}


/* ============================= */
/* META STRUCTURE */
/* ============================= */

.altanz-meta-wrapper {
    margin-top: 8px;
}

.altanz-meta-line {
    display: block;
    font-size: 13px;
    margin-top: 4px;
    color: #444;
}

.altanz-meta-label {
    font-weight: 500;
    margin-bottom: 2px;
}

.altanz-meta-value {
    color: #666;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.altanz-meta-price {
    font-weight: 500;
    color: #000;
}


/* ============================= */
/* STACKED (CART + CHECKOUT) */
/* ============================= */

.woocommerce-cart-form .altanz-meta-line,
.woocommerce-checkout-review-order .altanz-meta-line {
    display: block;
}

.woocommerce-cart-form .altanz-meta-label,
.woocommerce-checkout-review-order .altanz-meta-label {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.woocommerce-cart-form .altanz-meta-value,
.woocommerce-checkout-review-order .altanz-meta-value {
    display: block;
    color: #666;
}

.woocommerce-cart-form .altanz-meta-price,
.woocommerce-checkout-review-order .altanz-meta-price {
    display: block;
    margin-top: 2px;
}



/* ============================= */
/* MINI CART – FIX */
/* ============================= */

.woocommerce-mini-cart-item .altanz-meta-line {
    display: block;
    margin-top: 4px;
}

/* LABEL */
.woocommerce-mini-cart-item .altanz-meta-label {
    display: inline;
    font-weight: 500;
    color: #1f2a44;
    margin-right: 6px;
}

/* VALUE */
.woocommerce-mini-cart-item .altanz-meta-value {
    display: inline;
    color: #666;
}

/* PRICE */
.woocommerce-mini-cart-item .altanz-meta-price {
    display: block;
    margin-top: 2px;
    font-weight: 500;
    color: #000;
}

/* GIFT WRAP TEXT (truncate nicely) */
.woocommerce-mini-cart-item .altanz-meta-value {
    max-width: 220px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}



/*  ALTANZ CHILD ROW (FINAL CLEAN) */

/* Base row */
tr.altanz-child td {
    padding: 8px 0 !important;
    opacity: 0.95;
}

/* Product column */
tr.altanz-child td.product-name {
    padding-left: 6px !important;
    width: 100%;
    line-height: 1.2;
    font-size: 0;
}

/* Hide thumbnail */
tr.altanz-child td.product-thumbnail img {
    display: none;
}

/* Product title */

/* Product title (FINAL CLEAN) */
tr.altanz-child td.product-name a {
    display: inline;
    font-size: 13px;
    font-weight: 400; /* final choice (lighter look) */
    color: #1a2a4a;
    margin-right: 4px;
}

.altanz-meta {
    display: block;
    margin-top: 0px;      /* 🔥 remove gap */
    font-size: 12px;
    line-height: 1.2;     /* 🔥 tighter text box */
    color: #777;
    padding: 0;
}

.altanz-meta-wrap {
    display: block;
    margin-top: 4px;
}


/* =========================
   TITLE + ICON GROUP
   ========================= */


.altanz-title-wrap {
    display: inline-flex;
    align-items: baseline; /* 🔥 key change */
    gap: 6px;
    white-space: nowrap;
    margin-bottom: 0;
    line-height: 1;
    font-size: 13px;
}

.altanz-title-wrap .altanz-edit-item {
    font-size: 12px;
    line-height: 1;
}

.altanz-child td {
    vertical-align: top;
    
}


/* Edit icon */


.altanz-edit-item {
    margin-left: 6px;
    cursor: pointer;
    background: none;
    border: none;
    
    font-size: 12px;
    opacity: 0.6;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
}

.altanz-edit-item:hover {
    opacity: 1;
}

/* =========================
   INLINE META
   ========================= */
tr.altanz-child .wc-item-meta {
    display: block;
    margin-top: 2px;
    line-height: 1.4;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}



tr.altanz-child .wc-item-meta li {
    display: inline;
    margin: 0;
    padding: 0;
}

tr.altanz-child .wc-item-meta strong {
    display: inline;
    font-weight: 500;
    color: #1a2a4a;
}

tr.altanz-child .wc-item-meta strong::after {
    content: ": ";
}

tr.altanz-child .wc-item-meta p {
    display: inline;
    margin: 0;
}

/* =========================
   PRICE / QTY
   ========================= */

.altanz-no-qty {
    color: #aaa;
}

/* ALWAYS keep structure-SHOW price for child items (fix mobile) */

tr.altanz-child td.product-price {
    display: table-cell !important;
}



/* Center qty dash */
tr.altanz-child td.product-quantity {
    text-align: center;
}

/* Subtotal (right side price) */
tr.altanz-child td.product-subtotal {
    font-size: 13px;
    padding-right: 10px;
}

/* =========================
   REMOVE ICON
   ========================= */

tr.altanz-child .product-remove a {
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 18px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

tr.altanz-child .product-remove a:hover {
    border-color: red;
    color: red;
}

/* =========================
   SEPARATOR
   ========================= */

tr.altanz-child:first-of-type td {
    border-top: 1px solid #eee;
}

.altanz-edit-item:hover {
    opacity: 1;
}

/* Light divider like luxury brands */
tr.altanz-child td {
    border-top: 1px solid #f2f2f2;
}

/* Slightly softer price */
tr.altanz-child td.product-subtotal {
    color: #444;
}









/* =========================
   ALTANZ SMOOTH UPDATE UX-VERY IMPORTANT
========================= */

body.altanz-updating {
    pointer-events: none;
}

/* Optional soft fade */
body.altanz-updating .woocommerce,
body.altanz-updating .cart-sidebar {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}




