/* Baita Checkout - Premium Cart Page Stylesheet */

/* WoodMart theme layout reset (sidebar-left grid pushes content to the right) */
body.baita-cart-page-active #main-content.wd-content-layout.wd-grid-g,
body.baita-cart-page-active #main-content.content-layout-wrapper.wd-grid-g {
    display: block !important;
}

body.baita-cart-page-active #main-content.wd-content-layout > *,
body.baita-cart-page-active #main-content.content-layout-wrapper > *,
body.baita-cart-page-active .wd-content-layout > div,
body.baita-cart-page-active .wd-content-area.wd-grid-col {
    grid-column: 1 / -1 !important;
    --wd-col-lg: 12 !important;
    --wd-col-md: 12 !important;
    --wd-col-sm: 12 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.baita-cart-page-active .wd-page-title.page-title {
    display: none !important;
}

.bc-cart-page-wrapper {
    width: 100%;
    min-height: 80vh;
    padding-top: var(--bc-cart-padding-top, 40px) !important;
    padding-right: var(--bc-cart-padding-right, 24px) !important;
    padding-bottom: var(--bc-cart-padding-bottom, 40px) !important;
    padding-left: var(--bc-cart-padding-left, 24px) !important;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1E293B;
}

.bc-cart-page-container {
    max-width: var(--bc-cart-max-width, 1200px);
    margin: var(--bc-cart-margin-top, 0) var(--bc-cart-margin-right, auto) var(--bc-cart-margin-bottom, 0) var(--bc-cart-margin-left, auto);
    width: 100%;
}

/* Header Area */
.bc-cart-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.bc-cart-page-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: #0F172A;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.bc-cart-btn-back-shop {
    color: #475569 !important;
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 18px !important;
    border-radius: 99px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.bc-cart-btn-back-shop svg {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bc-cart-btn-back-shop:hover {
    color: var(--bc-cart-primary) !important;
    background: #ffffff !important;
    border-color: var(--bc-cart-primary) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
}

.bc-cart-btn-back-shop:hover svg {
    transform: translateX(-3px) !important;
}

/* Free Shipping Progress Bar */
.bc-cart-shipping-progress-wrap {
    background: #ffffff;
    border-radius: var(--bc-cart-radius, 16px) !important;
    padding: 20px 24px;
    margin-bottom: var(--bc-cart-gap, 30px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    border: 1px solid #E2E8F0;
}

.bc-shipping-msg {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.bc-shipping-msg strong {
    color: #0F172A;
}

.bc-shipping-msg.success {
    color: #059669;
    font-weight: 600;
}

.bc-shipping-bar-container {
    height: 8px;
    background: #E2E8F0;
    border-radius: 99px;
    overflow: hidden;
    width: 100%;
}

.bc-shipping-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bc-cart-accent) 0%, #34D399 100%);
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grid Layout */
.bc-cart-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: var(--bc-cart-gap, 30px);
    align-items: start;
}

/* wpautop safety net: empty paragraphs must not consume grid tracks */
body.baita-cart-page-active .bc-cart-page-grid > p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 991px) {
    .bc-cart-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .bc-cart-page-item {
        grid-template-columns: 80px 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 12px;
        padding: 16px;
    }

    .bc-cart-item-img-col {
        grid-column: 1;
        grid-row: 1;
    }

    .bc-cart-item-desc-col {
        grid-column: 2;
        grid-row: 1;
    }

    .bc-cart-item-actions-col {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }

    .bc-cart-item-qty-col {
        grid-column: 1 / span 3;
        grid-row: 2;
        justify-self: start;
        width: 100%;
    }

    .bc-cart-item-total-col {
        grid-column: 1 / span 3;
        grid-row: 3;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-top: 10px;
        border-top: 1px dashed #E2E8F0;
    }
}

/* Left Column: Items Card */
.bc-cart-items-card {
    background: #ffffff;
    border-radius: var(--bc-cart-radius, 16px) !important;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    padding: 8px 0;
}

.bc-cart-page-item {
    display: grid;
    grid-template-columns: 90px 1fr 130px 100px 48px;
    gap: 20px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #F1F5F9;
    transition: background-color 0.2s ease;
}

.bc-cart-page-item:last-child {
    border-bottom: none;
}

.bc-cart-page-item:hover {
    background-color: transparent;
}

@media (max-width: 600px) {
    .bc-cart-page-item {
        grid-template-columns: 80px 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 12px;
        padding: 16px;
    }
    
    .bc-cart-item-img-col {
        grid-column: 1;
        grid-row: 1;
    }
    
    .bc-cart-item-desc-col {
        grid-column: 2;
        grid-row: 1;
    }
    
    .bc-cart-item-actions-col {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }
    
    .bc-cart-item-qty-col {
        grid-column: 1 / span 3;
        grid-row: 2;
        justify-self: start;
        margin-top: 4px;
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    .bc-cart-item-total-col {
        grid-column: 1 / span 3;
        grid-row: 3;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-top: 10px;
        border-top: 1px dashed #E2E8F0;
        margin-top: 4px;
        padding-right: 0 !important;
    }
    
    .bc-cart-item-total-col::before {
        content: "Subtotal do item";
        font-size: 11px;
        font-weight: 700;
        color: #64748B;
        text-transform: none;
        letter-spacing: 0.05em;
    }
    
    .bc-cart-item-total-val {
        font-size: 15px !important;
        font-weight: 800 !important;
    }
}

.bc-cart-item-img-col img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.bc-cart-item-desc-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bc-cart-item-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.bc-cart-item-name a {
    color: #0F172A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bc-cart-item-name a:hover {
    color: var(--bc-cart-accent);
}

.bc-cart-item-attributes {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

.bc-cart-item-attributes p {
    margin: 2px 0;
}

.bc-cart-item-unit-price {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
}

.bc-cart-item-stock {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.bc-cart-item-stock.bc-stock-in-stock {
    color: #059669;
}

.bc-cart-item-stock.bc-stock-low-stock {
    color: #d97706;
}

.bc-cart-item-stock.bc-stock-out-of-stock {
    color: #dc2626;
}

.bc-cart-item-stock.bc-stock-on-backorder {
    color: #6366f1;
}

.bc-cart-qty-btn:disabled,
.bc-cart-qty-btn.is-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.bc-cart-qty-btn:disabled:hover,
.bc-cart-qty-btn.is-disabled:hover {
    background: transparent !important;
    color: #475569 !important;
}

.bc-cart-stock-notice {
    display: none;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 13px;
    font-weight: 600;
}

.bc-cart-stock-notice.is-visible {
    display: block;
}

.bc-cart-stock-notice.bc-cart-notice--error {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

.bc-cart-stock-notice.bc-cart-notice--info {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.bc-modal-dialog .bc-field-error {
    display: block;
    margin-top: 6px;
    color: #DC2626;
    font-size: 12px;
    font-weight: 600;
}

.bc-modal-dialog .bc-input-error {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12) !important;
}

/* Quantity Stepper */
.bc-cart-qty-stepper {
    display: flex !important;
    align-items: center !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 99px !important;
    background: #ffffff !important;
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    overflow: hidden !important;
    height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.bc-cart-qty-btn {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 100% !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    line-height: 1 !important;
}

.bc-cart-qty-btn:hover {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
}

.bc-cart-qty-input {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 48px !important;
    height: 100% !important;
    border: none !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    box-shadow: none !important;
    cursor: text !important;
    pointer-events: auto !important;
    user-select: text !important;
}

.bc-cart-qty-input::-webkit-outer-spin-button,
.bc-cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.bc-cart-item-total-val {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
}

.bc-cart-item-remove-trigger {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #64748B !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.bc-cart-item-remove-trigger:hover {
    background-color: #FFE4E6 !important;
    color: #E11D48 !important;
}

/* Right Column: Summary Card */
.bc-cart-summary-card {
    background: #ffffff;
    border-radius: var(--bc-cart-radius, 16px) !important;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    padding: 24px;
    position: sticky;
    top: 24px;
}

.bc-cart-summary-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #0F172A;
    border-bottom: 1.5px solid #F1F5F9;
    padding-bottom: 12px;
}

.bc-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.bc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.bc-summary-row .value {
    color: #0F172A;
    font-weight: 700;
}

.bc-summary-row.total-row {
    font-size: 18px;
    border-top: 1.5px solid #F1F5F9;
    padding-top: 16px;
    color: #0F172A;
    font-weight: 800;
}

.bc-summary-row.total-row .value {
    font-size: 22px;
    color: var(--bc-cart-primary);
}

/* Coupon Row Styling */
.bc-summary-row.credit-row .credit-value {
    color: var(--bc-cart-accent, #10B981);
}

.bc-cart-credits-wrap {
    margin: 16px 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: var(--bc-cart-radius, 16px);
    background: #f8fafc;
    overflow: hidden;
}

.bc-cart-credits-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    background: #f8fafc !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    appearance: none;
    -webkit-appearance: none;
}

.bc-cart-credits-toggle {
    padding: 14px 16px;
}

.bc-cart-credits-toggle:hover {
    background: #f1f5f9 !important;
}

.bc-cart-credits-toggle:focus-visible {
    outline: 2px solid var(--bc-cart-primary, #6366F1);
    outline-offset: -2px;
}

.bc-cart-credits-heading-text {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.bc-cart-credits-heading-amount {
    font-weight: 700;
    color: var(--bc-cart-accent, #10B981);
    white-space: nowrap;
}

.bc-cart-credits-chevron {
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.2s ease;
}

.bc-cart-credits-toggle[aria-expanded="true"] .bc-cart-credits-chevron {
    transform: rotate(180deg);
}

.bc-cart-credits-body {
    margin-top: 0;
    padding: 0 16px 14px;
}

.bc-cart-credits-wrap .bc-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.bc-cart-credits-wrap input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
}

.bc-credits-balance-display {
    font-size: 14px;
    color: #334155;
    margin-bottom: 12px;
    line-height: 1.5;
}

.bc-credits-balance-display strong {
    color: #059669;
    font-weight: 700;
}

.bc-credits-balance-placeholder,
.bc-credits-balance-loading {
    color: #64748b;
    font-size: 13px;
}

.bc-credits-applicable-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.bc-credits-use-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}

.bc-credits-use-toggle.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bc-credits-use-toggle.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.bc-credits-use-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.bc-credits-applied-note {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
}

/* Observations — placed below the items column, same width as the left grid column */
.bc-cart-notes-below-items {
    /* Replicate the left column width: grid is [1fr 380px] with gap(--bc-cart-gap,30px).
       So we cap this block at calc(100% - 380px - var(--bc-cart-gap, 30px)) to match. */
    max-width: calc(100% - 380px - var(--bc-cart-gap, 30px));
    margin-top: var(--bc-cart-gap, 30px);
}

@media (max-width: 991px) {
    .bc-cart-notes-below-items {
        max-width: 100%;
    }
}

.bc-cart-notes-wrap {
    margin-top: 20px;
    background: #ffffff;
    border-radius: var(--bc-cart-radius, 16px) !important;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    padding: 20px 24px;
    overflow: hidden;
}

.bc-cart-notes-wrap .bc-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #334155;
}

.bc-cart-notes-wrap textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1.5px solid #CBD5E1;
    border-radius: calc(var(--bc-cart-radius, 16px) - 6px) !important;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    background: #F8FAFC;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bc-cart-notes-wrap textarea:focus {
    outline: none;
    border-color: var(--bc-cart-primary, #6366F1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    background: #fff;
}

.bc-summary-row.coupon-row {
    background: #ECFDF5;
    border: 1px dashed #34D399;
    border-radius: 8px;
    padding: 8px 12px;
}

.coupon-label {
    display: flex;
    align-items: center;
    color: #065F46;
    font-weight: 600;
}

.bc-remove-coupon-btn {
    background: transparent;
    border: none;
    color: #059669;
    font-size: 16px;
    cursor: pointer;
    font-weight: 700;
    margin-left: 6px;
    padding: 0;
    line-height: 1;
}

.bc-remove-coupon-btn:hover {
    color: #D11A2A;
}

.coupon-value {
    color: #047857 !important;
}

/* Coupon Form */
.bc-cart-coupon-form-wrap {
    margin-bottom: 24px;
    border-bottom: 1.5px solid #F1F5F9;
    padding-bottom: 20px;
}

.bc-coupon-input-group {
    display: flex;
    gap: 8px;
}

#bc-cart-coupon-code {
    flex: 1;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

#bc-cart-coupon-code:focus {
    border-color: var(--bc-cart-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

#bc-cart-apply-coupon-btn {
    border: 1.5px solid #CBD5E1 !important;
    border-radius: calc(var(--bc-cart-radius, 16px) - 6px) !important;
    background: #F8FAFC !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    height: auto !important;
}

#bc-cart-apply-coupon-btn:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

.bc-coupon-feedback-message {
    font-size: 12px !important;
    margin-top: 6px !important;
    font-weight: 500 !important;
}

.bc-coupon-feedback-message.success {
    color: #10B981 !important;
}

.bc-coupon-feedback-message.error {
    color: #EF4444 !important;
}

/* CTA Checkout Button */
.bc-btn-proceed-checkout {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bc-btn-bg, linear-gradient(135deg, var(--bc-cart-primary) 0%, var(--bc-cart-accent) 100%)) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px !important;
    border-radius: calc(var(--bc-cart-radius, 16px) - 4px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
}

.bc-btn-proceed-checkout:hover {
    background: var(--bc-btn-hover-bg, var(--bc-btn-bg, linear-gradient(135deg, var(--bc-cart-primary) 0%, var(--bc-cart-accent) 100%))) !important;
    filter: var(--bc-btn-hover-filter, brightness(1.08)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35) !important;
    color: #ffffff !important;
}

.bc-btn-proceed-checkout:active {
    transform: translateY(0) !important;
}

/* Security badges styling */
.bc-cart-security-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    border-top: 1.5px solid #F1F5F9;
    padding-top: 20px;
}

.bc-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

.bc-badge-item svg {
    color: #64748B;
    flex-shrink: 0;
}

/* Empty Cart Page State */
.bc-cart-empty-page-state {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.bc-cart-empty-page-state .bc-empty-icon {
    background: #FAF5FF;
    color: var(--bc-cart-accent);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.bc-cart-empty-page-state h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #0F172A;
}

.bc-cart-empty-page-state p {
    font-size: 15px;
    color: #64748B;
    margin: 0 0 30px 0;
}

.bc-btn-continue-shopping-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bc-cart-primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.bc-btn-continue-shopping-empty:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Loading overlays */
.bc-cart-page-container.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Style theme's page title for premium aesthetics */
body.woocommerce-cart h1.entry-title,
body.woocommerce-cart h1.page-title,
body.woocommerce-cart .page-title-default h1,
body.woocommerce-checkout h1.entry-title,
body.woocommerce-checkout h1.page-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 32px !important;
    color: #0F172A !important;
    letter-spacing: -0.8px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
}

/* Hide duplicate inner titles or headings that the theme or WooCommerce might try to inject inside our custom container */
.bc-cart-page-wrapper h1.page-title,
.bc-cart-page-wrapper h1.entry-title,
.bc-cart-page-wrapper .page-title,
.bc-cart-page-wrapper .entry-title,
.bc-cart-page-wrapper h2.page-title {
    display: none !important;
}

/* Aggressive Theme Reset & Isolation */
.bc-cart-page-wrapper *,
.bc-cart-page-wrapper *::before,
.bc-cart-page-wrapper *::after {
    box-sizing: border-box !important;
}

.bc-cart-page-wrapper select,
.bc-cart-page-wrapper input,
.bc-cart-page-wrapper button,
.bc-cart-page-wrapper textarea {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

/* Force theme typography alignment in the cart scope */
body.woocommerce-cart h1,
body.woocommerce-cart h2,
body.woocommerce-cart h3,
body.woocommerce-cart h4,
body.woocommerce-cart h5,
body.woocommerce-cart h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
}

/* Spacing safety margin on mobile to avoid WhatsApp / chat floating button overlaps */
@media (max-width: 768px) {
    .bc-cart-page-wrapper {
        padding-bottom: 120px !important;
    }
}

/* ==========================================================================
   Premium Product Details Modal popup
   ========================================================================== */

/* Body scroll lock when modal is active */
body.bc-modal-open {
    overflow: hidden !important;
}

/* Modal Backdrop */
.bc-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.bc-modal-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Modal Box / Dialog */
.bc-modal-dialog {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 680px !important;
    border-radius: var(--bc-cart-radius, 20px) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transform: scale(0.9) translateY(20px) !important;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    max-height: 90vh !important;
}

.bc-modal-backdrop.active .bc-modal-dialog {
    transform: scale(1) translateY(0) !important;
}

/* Modal Header */
.bc-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 28px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    background: #ffffff !important;
}

.bc-modal-header h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #0F172A !important;
    letter-spacing: -0.4px !important;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

.bc-modal-close {
    background: #F1F5F9 !important;
    border: none !important;
    color: #64748B !important;
    font-size: 0 !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
}

.bc-modal-close svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

.bc-modal-close:hover {
    background: #FFE4E6 !important;
    color: #E11D48 !important;
    transform: rotate(90deg) !important;
}

/* Modal Body */
.bc-modal-body {
    padding: 28px !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    max-height: calc(90vh - 80px) !important;
    box-sizing: border-box !important;
}

/* Product Info Block Inside Modal */
.bc-modal-item-product-info {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding-bottom: 24px !important;
    border-bottom: 1.5px dashed #E2E8F0 !important;
    margin-bottom: 24px !important;
}

.bc-modal-item-thumbnail img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 1.5px solid #E2E8F0 !important;
    background: #F8FAFC !important;
}

.bc-modal-item-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.bc-modal-product-name {
    font-size: 16px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #0F172A !important;
    line-height: 1.4 !important;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

.bc-modal-product-qty {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748B !important;
    background: #F1F5F9 !important;
    padding: 3px 10px !important;
    border-radius: 99px !important;
    align-self: flex-start !important;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

/* Trigger Button styling inside Cart Card */
.bc-cart-item-details-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #F8FAFC !important;
    color: var(--bc-cart-primary) !important;
    border: 1.5px solid #E2E8F0 !important;
    padding: 8px 16px !important;
    border-radius: 99px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 6px !important;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    width: fit-content !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.bc-cart-item-details-trigger svg {
    flex-shrink: 0 !important;
}

.bc-cart-item-details-trigger:hover {
    background: #ffffff !important;
    border-color: var(--bc-cart-primary) !important;
    box-shadow: 0 4px 12px rgba(var(--bc-cart-primary-rgb), 0.08) !important;
    transform: translateY(-1px) !important;
}

.bc-cart-item-details-trigger:active {
    transform: translateY(0) !important;
}

/* Flat Definition List Formatting inside Modal */
.bc-modal-fields-grid dl.variation {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #E2E8F0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.bc-modal-fields-grid dl.variation dt {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    color: #64748B !important;
    letter-spacing: 0.05em !important;
    padding: 14px 20px 4px 20px !important;
    background: #F8FAFC !important;
    margin: 0 !important;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    border-bottom: none !important;
}

.bc-modal-fields-grid dl.variation dd {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    padding: 0 20px 14px 20px !important;
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    margin: 0 !important;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

.bc-modal-fields-grid dl.variation dd:last-of-type {
    border-bottom: none !important;
}

.bc-modal-fields-grid dl.variation dd p {
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Spacious Grid for Desktop */
@media (min-width: 768px) {
    .bc-modal-fields-grid dl.variation {
        display: grid !important;
        grid-template-columns: 200px 1fr !important;
        background: #ffffff !important;
    }

    .bc-modal-fields-grid dl.variation dt {
        background: #ffffff !important;
        padding: 18px 24px !important;
        border-bottom: 1px solid #F1F5F9 !important;
        font-size: 11px !important;
        display: flex !important;
        align-items: center !important;
    }

    .bc-modal-fields-grid dl.variation dd {
        background: #ffffff !important;
        padding: 18px 24px !important;
        border-bottom: 1px solid #F1F5F9 !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center !important;
    }

    .bc-modal-fields-grid dl.variation dt:last-of-type,
    .bc-modal-fields-grid dl.variation dd:last-of-type {
        border-bottom: none !important;
    }
}

/* ==========================================================================
   Payment Conditions & Email Order Form Styles
   ========================================================================== */

.bc-payment-conditions-wrap {
    margin: 20px 0;
    padding: 18px 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--bc-cart-radius, 12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.bc-payment-conditions-wrap label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.bc-payment-conditions-wrap select.bc-select {
    flex: 1;
    min-width: 200px;
    max-width: 350px;
    height: 42px;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bc-payment-conditions-wrap select.bc-select:focus {
    border-color: var(--bc-cart-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Modal styling overrides for the email form */
.bc-email-modal-dialog {
    max-width: 580px !important;
}

.bc-form-field {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bc-form-field label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.bc-form-field input[type="text"],
.bc-form-field input[type="email"],
.bc-form-field select {
    width: 100%;
    height: 46px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    color: #0F172A;
    background-color: #ffffff;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

.bc-form-field input:focus,
.bc-form-field select:focus,
.bc-form-field textarea:focus {
    border-color: var(--bc-cart-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.bc-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 580px) {
    .bc-form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .bc-payment-conditions-wrap {
        margin: 15px 0;
        flex-direction: column;
        align-items: stretch;
    }
    .bc-payment-conditions-wrap select.bc-select {
        max-width: 100%;
    }
}

/* CEP row: keep label aligned with the input, button aligned at the input baseline */
.bc-form-grid-cep {
    align-items: end;
}

.bc-form-grid-cep .bc-form-field-cep-btn {
    margin-bottom: 16px;
}

.bc-form-grid-cep .bc-form-field-cep-btn .bc-btn {
    width: 100%;
    height: 46px;
    border-radius: 8px;
}

@media (max-width: 580px) {
    .bc-form-grid-cep {
        grid-template-columns: 1fr;
    }
    .bc-form-grid-cep .bc-form-field-cep-btn {
        margin-bottom: 0;
    }
}

.bc-email-error-msg {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}

/* BFC (Baita Frete por Cidade) context inside the email-order modal */

.bc-cart-shipping-calculator-wrap {
    margin: 16px 0 4px;
}

.bc-cart-shipping-methods {
    margin: 4px 0 12px;
    padding: 0;
    background: transparent;
    border: none;
}

.bc-cart-shipping-methods-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 8px;
}

.bc-cart-shipping-methods-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bc-cart-shipping-method label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bc-cart-shipping-method label:hover {
    border-color: #cbd5e1;
}

.bc-cart-shipping-method-input {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--bc-cart-primary, #6366F1);
}

.bc-cart-shipping-method:has(.bc-cart-shipping-method-input:checked) label {
    border-color: var(--bc-cart-primary, #6366F1);
    background: color-mix(in srgb, var(--bc-cart-primary, #6366F1) 6%, #ffffff);
}

.bc-cart-shipping-method-body {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.bc-cart-shipping-method-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.bc-cart-shipping-method-cost {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    line-height: 1.35;
}

.bc-cart-shipping-method-cost del {
    color: #94a3b8;
    font-weight: 500;
    margin-right: 4px;
}

.bc-cart-shipping-free {
    color: #10b981;
}

.bc-cart-shipping-method-note {
    margin: 0 0 0 0;
    padding: 0 14px 10px 40px;
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
}

.bc-summary-row.shipping-row-pending .value {
    color: #64748b;
    font-style: italic;
}

/* Cart-page shipping-required notice (hidden by default, shown only when the
   customer clicks the locked CTA without having chosen a shipping method). */
.bc-shipping-required-notice[hidden] {
    display: none !important;
}

.bc-shipping-required-notice {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    background: #FEF3C7 !important;
    color: #78350F !important;
    border: 1px solid #FCD34D !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    margin: 0 0 14px 0 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.bc-shipping-required-notice svg {
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    color: #B45309 !important;
}

.bc-shipping-required-notice strong {
    display: block !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #78350F !important;
    margin-bottom: 2px !important;
}

.bc-shipping-required-notice span {
    display: block !important;
    color: #92400E !important;
    font-weight: 500 !important;
}

/* Locked CTA state (no shipping method chosen yet) */
.bc-btn-proceed-checkout.bc-cta-locked,
a.bc-btn-proceed-checkout.bc-cta-locked,
.bc-btn-proceed-checkout[aria-disabled="true"],
a.bc-btn-proceed-checkout[aria-disabled="true"],
.bc-btn-proceed-checkout[disabled] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(0.4) !important;
    box-shadow: none !important;
    transform: none !important;
}

.bc-btn-proceed-checkout.bc-cta-locked:hover,
a.bc-btn-proceed-checkout.bc-cta-locked:hover,
.bc-btn-proceed-checkout[aria-disabled="true"]:hover,
a.bc-btn-proceed-checkout[aria-disabled="true"]:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(0.4) !important;
}

/* Read-only shipping type field inside the modal */
.bc-input-readonly {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
    font-weight: 600 !important;
    border: 1px dashed #CBD5E1 !important;
    cursor: default !important;
}

.bc-shipping-type-meta {
    display: block !important;
    margin-top: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748B !important;
}

.bc-bfc-context-banner {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    background: #EEF2FF !important;
    color: #4338CA !important;
    border: 1px solid #C7D2FE !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    margin: 0 0 16px 0 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}

.bc-bfc-context-banner svg {
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    color: #6366F1 !important;
}

.bc-bfc-shipping-chip {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(16, 185, 129, 0.08)) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin: 0 0 18px 0 !important;
    font-size: 13px !important;
    color: #0F172A !important;
}

.bc-bfc-shipping-chip .bc-bfc-chip-label {
    font-weight: 700 !important;
    color: #4338CA !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.bc-bfc-shipping-chip .bc-bfc-chip-value {
    margin-left: auto !important;
    font-weight: 800 !important;
    color: #047857 !important;
    background: #ECFDF5 !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
}

.bc-bfc-shipping-chip .bc-bfc-chip-value-tbd {
    color: #92400E !important;
    background: #FEF3C7 !important;
}

/* Remove-shipping X button on the BFC chip */
.bc-bfc-shipping-chip .bc-bfc-chip-remove {
    flex-shrink: 0 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(15, 23, 42, 0.06) !important;
    color: #475569 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 0 0 6px !important;
    transition: all 0.2s ease !important;
    font-size: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.bc-bfc-shipping-chip .bc-bfc-chip-remove:hover {
    background: #FEE2E2 !important;
    color: #B91C1C !important;
    transform: rotate(90deg) !important;
}

.bc-bfc-shipping-chip .bc-bfc-chip-remove:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.bc-bfc-shipping-chip .bc-bfc-chip-remove svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
}

/* X button on the popup readonly shipping-type input */
.bc-shipping-type-row {
    display: flex !important;
    align-items: stretch !important;
    gap: 6px !important;
}

.bc-shipping-type-row .bc-input-readonly {
    flex: 1 1 auto !important;
}

.bc-shipping-type-remove {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 46px !important;
    min-width: 40px !important;
    border-radius: 8px !important;
    border: 1px solid #FCA5A5 !important;
    background: #FEF2F2 !important;
    color: #B91C1C !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    font-size: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.bc-shipping-type-remove:hover {
    background: #B91C1C !important;
    color: #FFFFFF !important;
    border-color: #B91C1C !important;
    transform: rotate(90deg) !important;
}

.bc-shipping-type-remove svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
}

/* Banner contextual close button */
.bc-bfc-context-banner .bc-bfc-context-banner-close {
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(67, 56, 202, 0.12) !important;
    color: #4338CA !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important;
    transition: all 0.2s ease !important;
    font-size: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.bc-bfc-context-banner .bc-bfc-context-banner-close:hover {
    background: #4338CA !important;
    color: #FFFFFF !important;
    transform: rotate(90deg) !important;
}

.bc-bfc-context-banner .bc-bfc-context-banner-close svg {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
}

.bc-bfc-shipping-chip .bc-bfc-chip-meta {
    width: 100% !important;
    font-size: 12px !important;
    color: #475569 !important;
    margin-top: 2px !important;
}

@media (max-width: 480px) {
    .bc-bfc-shipping-chip .bc-bfc-chip-value {
        margin-left: 0 !important;
    }
}

/* Force no capitalization globally in cart page and modals */
.bc-cart-page-container *,
.bc-modal-backdrop * {
    text-transform: none !important;
}

.bc-btn-proceed-checkout:focus-visible,
.bc-cart-btn-back-shop:focus-visible,
.bc-cart-qty-btn:focus-visible,
#bc-email-cep-btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(var(--bc-cart-primary-rgb, 99, 102, 241), 0.35) !important;
}

@media (prefers-reduced-motion: reduce) {
    .bc-cart-page-wrapper *,
    .bc-cart-page-wrapper *::before,
    .bc-cart-page-wrapper *::after,
    .bc-modal-backdrop *,
    .bc-modal-backdrop *::before,
    .bc-modal-backdrop *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   Per-product observation note (pencil + popup)
   ========================================================================== */

.bc-item-note-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    margin-top: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.bc-item-note-preview {
    margin: 0 !important;
    padding: 8px 10px !important;
    background: #FFFBEB !important;
    border-left: 3px solid #F59E0B !important;
    border-radius: 6px !important;
    color: #78350F !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
    word-break: break-word !important;
}

.bc-item-note-label {
    font-weight: 700 !important;
    margin-right: 4px !important;
}

.bc-item-note-edit {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: transparent !important;
    color: #64748B !important;
    border: 1px dashed #CBD5E1 !important;
    padding: 3px 8px !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease !important;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

.bc-item-note-edit:hover,
.bc-item-note-edit:focus-visible {
    color: var(--bc-cart-primary, #6366F1) !important;
    border-color: var(--bc-cart-primary, #6366F1) !important;
    background: rgba(var(--bc-cart-primary-rgb, 99, 102, 241), 0.06) !important;
    outline: none !important;
}

.bc-item-note-row.has-note .bc-item-note-edit {
    border-style: solid !important;
    color: var(--bc-cart-primary, #6366F1) !important;
}

.bc-item-note-edit svg {
    flex-shrink: 0 !important;
}

.bc-item-note-modal {
    z-index: 1000000 !important;
}

.bc-item-note-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.bc-item-note-dialog {
    max-width: 440px !important;
    width: calc(100% - 32px) !important;
}

.bc-item-note-product-name {
    margin: 0 0 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

.bc-item-note-modal .bc-field-label {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

.bc-item-note-modal textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 110px !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    resize: vertical !important;
    background: #fff !important;
    color: #0F172A !important;
}

.bc-item-note-modal textarea:focus {
    outline: none !important;
    border-color: var(--bc-cart-primary, #6366F1) !important;
    box-shadow: 0 0 0 3px rgba(var(--bc-cart-primary-rgb, 99, 102, 241), 0.15) !important;
}

.bc-item-note-error {
    margin: 10px 0 0 !important;
    color: #DC2626 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.bc-item-note-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    padding: 0 20px 20px !important;
}

.bc-item-note-footer .bc-btn {
    min-height: 40px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    border: none !important;
}

.bc-item-note-footer .bc-btn-secondary {
    background: #F1F5F9 !important;
    color: #475569 !important;
}

.bc-item-note-footer .bc-btn-primary {
    background: var(--bc-cart-primary, #6366F1) !important;
    color: #fff !important;
}

.bc-item-note-footer .bc-btn:disabled {
    opacity: 0.6 !important;
    cursor: wait !important;
}
