/* ===================================================================
   All-In Pricing — FTC-Compliant Price Display
   =================================================================== */

/* Wrapper */
.ctod-all-in-price {
    display: inline-block;
    line-height: 1.4;
    text-align: right;
}

/* "All-In Price" label above the amount */
.ctod-all-in-label {
    display: block;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    margin-bottom: 2px;
}

/* Prominent all-in total */
.ctod-all-in-total {
    display: block;
    font-weight: 700;
    font-size: 1.1em;
}

/* Fee breakdown container */
.ctod-all-in-breakdown {
    display: block;
    margin-top: 4px;
    font-size: 0.8em;
    color: #666;
    line-height: 1.5;
}

/* Individual breakdown line items */
.ctod-all-in-base,
.ctod-all-in-fee {
    display: block;
}

/* ---- Inline layout variant (cart rows) ---- */
.ctod-all-in-price.ctod-layout-inline .ctod-all-in-label {
    display: inline;
    margin-right: 4px;
}

.ctod-all-in-price.ctod-layout-inline .ctod-all-in-total {
    display: inline;
}

.ctod-all-in-price.ctod-layout-inline .ctod-all-in-breakdown {
    display: inline;
    margin-top: 0;
    margin-left: 6px;
}

.ctod-all-in-price.ctod-layout-inline .ctod-all-in-base,
.ctod-all-in-price.ctod-layout-inline .ctod-all-in-fee {
    display: inline;
}

.ctod-all-in-price.ctod-layout-inline .ctod-all-in-fee::before {
    content: " + ";
}

/* ---- Hidden breakdown ---- */
.ctod-all-in-price.ctod-no-breakdown .ctod-all-in-breakdown {
    display: none;
}

/* ---- Tooltip breakdown variant ---- */
.ctod-all-in-price.ctod-tooltip-breakdown {
    position: relative;
}

.ctod-all-in-price.ctod-tooltip-breakdown .ctod-all-in-total {
    cursor: help;
    border-bottom: 1px dotted #999;
    display: inline-block;
}

.ctod-all-in-price.ctod-tooltip-breakdown .ctod-all-in-breakdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 4px;
}

.ctod-all-in-price.ctod-tooltip-breakdown:hover .ctod-all-in-breakdown {
    display: block;
}

/* ---- Fee note ---- */
.ctod-all-in-note {
    display: block;
    margin-top: 4px;
    font-size: 0.7em;
    color: #999;
    font-style: italic;
}

/* ---- Checkout unit price annotation ---- */
.ctod-checkout-unit-price {
    font-size: 0.85em;
    color: #666;
}

/* ---- Cart-specific sizing ---- */
.woocommerce-cart-form .ctod-all-in-price .ctod-all-in-breakdown {
    font-size: 0.75em;
}

/* ---- Cart/checkout totals: hide the original subtotal row ----
   The PHP filter replaces the subtotal value with a hidden marker span.
   The :has() selector hides the entire parent <tr> regardless of widget markup. */
tr:has(.ctod-hide-parent-row) {
    display: none !important;
}
.ctod-hide-parent-row {
    display: none;
}

/* ---- All-In Subtotal row ---- */
.ctod-all-in-subtotal th,
.ctod-all-in-subtotal td {
    font-weight: 600;
}
.ctod-all-in-subtotal td {
    text-align: right;
}

.ctod-all-in-subtotal-checkout{
    border-bottom: 1px solid #3e3a3a;
}

.eael-woo-cart-form .ctod-all-in-subtotal-checkout{
    display:flex;
    justify-content: space-between;
    border:none !important;
    padding-bottom: 10px;
    background:#fff;
    padding:20px;
    margin-bottom: 10px;
    border-radius:8px;
    font-size:1.1em;
    font-weight: bold;
    color: var(--e-global-color-ccdd475);
    order: 99;
}

/* ---- Variable product range ---- */
.ctod-all-in-price .ctod-all-in-range {
    display: block;
    font-size: 0.75em;
    color: #888;
    margin-top: 2px;
}
.woocommerce-variation-price{
    text-align: right;
    padding-right:10px;
    padding-bottom: 20px;
}