/* ============================================================
   YC Cart Styles — card-based cart item layout
   All classes prefixed with yc-
   ============================================================ */
 
/* Hide the default WooCommerce cart table structure */
.woocommerce-cart table.shop_table thead,
.woocommerce-cart table.shop_table tfoot .cart-subtotal,
.woocommerce-cart table.shop_table tfoot .order-total {
    /* keep totals visible */
}
 
.woocommerce-cart table.shop_table {
    border: none !important;
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
 
.woocommerce-cart table.shop_table thead th {
    display: none !important;
}
 
/* ── Card wrapper ─────────────────────────────────────────── */
.yc-cart-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    position: relative !important;
    overflow: visible !important;
}
 
/* Override WooCommerce td defaults inside the row */
.yc-cart-item td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    vertical-align: top !important;
}
 
/* ── Remove (×) button ────────────────────────────────────── */
.yc-cart-item .yc-remove-wrap {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
}
 
.yc-remove-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    border-radius: 50% !important;
    color: #555555 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.15s, color 0.15s !important;
}
 
.yc-remove-btn:hover {
    background: #f44336 !important;
    border-color: #f44336 !important;
    color: #ffffff !important;
}
 
/* ── Product image ────────────────────────────────────────── */
.yc-cart-item .yc-image-cell {
    width: 370px !important;
    min-width: 160px !important;
    flex-shrink: 0 !important;
}
 
.yc-product-thumb {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    padding: 12px 0px !important;
    background: transparent !important;
}
 
/* ── Details panel ────────────────────────────────────────── */
.yc-cart-item .yc-details-cell {
    flex: 1 !important;
    padding: 20px 50px 20px 20px !important;
}
 
/* Title row */
.yc-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.yc-item-header a{
    font-weight: bold !important;
    font-size: 1rem;
}
 
.yc-item-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    margin: 0 !important;
    display: block !important;
    flex: 1;
}
 
.yc-item-title:hover {
    color: #0071a1 !important;
}
 
.yc-item-base-price {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    white-space: nowrap !important;
}
 
/* Prescription / variation meta link */
.yc-prescription-toggle {
    font-size: 14px !important;
    color: #0071a1 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-bottom: 10px !important;
}
 
.yc-prescription-toggle:hover {
    text-decoration: underline !important;
}
 
/* Line items (e.g. Distance Vision, Lens type) */
.yc-line-items {
    list-style: none !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
}
 
.yc-line-item {
    display: flex;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 13px !important;
    color: #333333 !important;
    padding: 3px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
 
.yc-line-item:last-child {
    border-bottom: none !important;
}
 
.yc-line-item-label {
    color: #333333;
}
 
.yc-line-item-price {
    font-weight: 500;
    color: #1a1a1a;
}
 
/* ── Quantity + Subtotal row ──────────────────────────────── */
.yc-cart-footer {
    /*display: flex;*/
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eeeeee;
}
 
.yc-qty-label {
    font-size: 13px;
    color: #555555;
    margin-right: 8px;
}
 
.yc-qty-input {
    width: 52px !important;
    height: 34px !important;
    border: 1px solid #cccccc !important;
    border-radius: 3px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    background: #ffffff !important;
    padding: 0 4px !important;
}
 
.yc-subtotal-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.yc-subtotal-label {
    font-size: 13px;
    color: #555555;
}
 
.yc-subtotal-value {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}
 
/* ── Cart table tweaks ────────────────────────────────────── */
.woocommerce-cart table.shop_table tbody tr.yc-cart-item {
    display: flex !important;
}
 
/* Keep totals table untouched */
.woocommerce-cart .cart_totals table {
    display: table !important;
}
 
/* Responsive */
@media (max-width: 600px) {
    .yc-cart-item {
        flex-direction: column !important;
    }
    .yc-cart-item .yc-image-cell {
        width: 100% !important;
    }
    .yc-product-thumb {
        height: 200px !important;
    }
    .yc-cart-item .yc-details-cell {
        padding: 14px 14px 14px 14px !important;
    }
}
@media (max-width: 480px) {
    .button.yc-empty-cart{
        text-align: center !important;
        margin-bottom: 10px !important;
    }
    .button.yc-continue-shopping{
        text-align: center !important;
    }
}

.cart_item.yc-cart-item td.product-quantity{
    display: none !important;
}

.cart_item.yc-cart-item td.product-subtotal{
    display: none !important;
}

.cart_item.yc-cart-item td.product-thumbnail{
    width: auto !important;
}


.cart_item.yc-cart-item .yc-card-subtotal{ font-weight: bold; text-align: right;}

.yc-line-item-price .epf-cart-meta-price .amount{
    color: #000 !important;
}

.yc-line-item-price .epf-cart-meta-price .amount::before{
    content: "+" !important;
    
}


.woocommerce-cart .actions button[name="update_cart"] {
    display: none !important;
}

.yc-prescription-toggle.yc-prescription-visible{}
.yc-prescription-toggle.yc-prescription-hidden{}
.yc-prescription-toggle.yc-prescription-visible::after{ content: "▲"; }
.yc-prescription-toggle.yc-prescription-hidden::after{ content: "▼"; }
.yc-line-items.yc-toggle-block--closed{ display: none; }


.woocommerce table.shop_table_responsive tr.yc-cart-item td::before, .woocommerce-page table.shop_table_responsive tr.yc-cart-item td::before {
    display: none !important;
}

.yc-cart-wrapper .cart-summary{
    margin-bottom: 1rem !important;
}


.yc-cart-wrapper .actions .coupon{ 
    display: none !important;
}

/* ── YC Coupon Widget ─────────────────────────────────────────── */

.yc-coupon-wrap {
    margin: 0 0 18px;
    font-family: inherit;
}

/* Label */
.yc-coupon-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 10px !important;
}
.yc-coupon-label svg {
    flex-shrink: 0;
    color: var(--global-palette-btn-bg);
}

/* Row */
.yc-coupon-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

/* Field wrapper (for spinner overlay) */
.yc-coupon-field-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

/* Input */
.yc-coupon-input {
    width: 100%;
    height: 46px;
    padding: 0 42px 0 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}
.yc-coupon-input:focus {
    border-color: var(--global-palette-btn-bg);
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.yc-coupon-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 0;
}

/* Spinner */
.yc-coupon-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: none;
    pointer-events: none;
}
.yc-coupon-spinner--active {
    display: block;
}
.yc-coupon-spinner svg {
    width: 100%;
    height: 100%;
    animation: yc-spin .75s linear infinite;
}
.yc-coupon-spinner svg circle {
    stroke: var(--global-palette-btn-bg);
    stroke-dasharray: 40;
    stroke-dashoffset: 10;
    stroke-linecap: round;
}
@keyframes yc-spin {
    to { transform: rotate(360deg); }
}

/* Button */
.yc-coupon-btn {
    max-width: 100px;
}
.yc-coupon-btn:hover:not(:disabled) {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124,58,237,.45);
}
.yc-coupon-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124,58,237,.3);
}
.yc-coupon-btn:disabled,
.yc-coupon-btn--loading {
    opacity: .65;
    cursor: not-allowed;
    transform: none !important;
}
/* Shimmer sweep on hover */
.yc-coupon-btn::after {
    /*content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .4s;*/
}
.yc-coupon-btn:hover:not(:disabled)::after {
    transform: translateX(100%);
}

/* Message */
.yc-coupon-msg {
    display: none;
    margin-top: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.yc-coupon-msg--success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.yc-coupon-msg--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Applied tags */
.yc-coupon-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.yc-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(222, 51, 102, 0.1);
    border: 1px solid var(--global-palette-btn-bg);
    border-radius: 20px;
    padding: 4px 10px 4px 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    color: var(--global-palette-btn-bg);
    transition: opacity .2s;
    white-space: nowrap;
}
.yc-coupon-tag svg {
    flex-shrink: 0;
    color: var(--global-palette-btn-bg);
}
.yc-coupon-tag--removing {
    opacity: .45;
}

.yc-coupon-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    color: var(--global-palette-btn-bg);
    padding: 0 0 0 3px;
    margin: 0;
    display: flex;
    align-items: center;
    transition: color .15s, transform .15s;
}
.yc-coupon-tag-remove:hover {
    color: #b91c1c;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 480px) {
    .yc-coupon-row {
        flex-direction: column;
    }
    .yc-coupon-btn {
        width: 100%;
        height: 44px;
    }
    .yc-coupon-input {
        height: 44px;
    }
}
/* ─────────────────────────────────────────────────────────────── */


.checkout-order-review #order_review table.shop_table.woocommerce-checkout-review-order-table thead{
    display: none !important;
}

.checkout-order-review #order_review table.shop_table.woocommerce-checkout-review-order-table tbody{
    display: none !important;
}