.agent-order-emulator *, .agent-order-emulator input, .agent-order-emulator button, .agent-order-emulator textarea, .agent-order-emulator select, .agent-order-emulator ul, .agent-order-emulator li, .agent-order-emulator h3, .agent-order-emulator p {
    box-sizing: border-box;
    font-size: 1.125rem;
    line-height: 1.5;
    margin: 0;
    padding: 0
}

#aoe-new-card-container, #aoe-pay-order, .agent-order-emulator > * + * {
    margin-top: 1rem
}

.agent-order-emulator ul, .agent-order-emulator ol {
    list-style: none
}

.aoe-qty-container {
    display: inline-block;
    position: relative
}

.aoe-qty-btn {
    background: var(--aoe-accent);
    border-radius: 0.25rem;
    color: #fff;
    cursor: pointer;
    height: 1.5rem;
    line-height: 1.5rem;
    position: absolute;
    right: 0.25rem;
    text-align: center;
    transition: background 0.2s;
    user-select: none;
    width: 1.5rem
}

    .agent-order-emulator .button-primary, .agent-order-emulator .button:hover, .agent-order-emulator #aoe-apply-promo:hover, .agent-order-emulator #aoe-calc-shipping:hover, .agent-order-emulator #aoe-update-shipping:hover, .agent-order-emulator #aoe-pay-order:hover, .agent-order-emulator .aoe-update-item:hover, .agent-order-emulator .aoe-remove-item:hover, .agent-order-emulator .ai-product-actions button:hover, .agent-order-emulator .ai-product-actions a:hover, .ai-product-actions a:hover, .ai-product-actions button:hover, .aoe-customer-details .button.small:hover, .aoe-customer-form .button:hover, .aoe-qty-btn:hover, .aoe-save-notes:not(:disabled):hover, button:hover, .button:hover, .aoe-update-item:hover, .aoe-remove-item:hover {
        background: var(--aoe-accent-hover)
    }

    .aoe-qty-btn.up {
        top: 0.25rem
    }

    .aoe-qty-btn.down {
        bottom: 0.25rem
    }

.aoe-search-wrap input, #aoe-product-search, #aoe-promo-input {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: 0.375rem;
    color: var(--aoe-text);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0.75rem;
    width: 100%
}

#aoe-search-results, #aoe-product-results, #aoe-payment-options {
    margin: 0.75rem 0;
    padding: 0
}

    #aoe-search-results li button, #aoe-product-results li {
        background: var(--aoe-bg-light);
        border: 1px solid var(--aoe-border);
        border-radius: 0.375rem;
        cursor: pointer;
        display: block;
        padding: 0.75rem;
        text-align: left;
        width: 100%
    }

#aoe-product-results {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: block;
    height: 250px;
    max-height: 350px;
    min-height: 250px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    z-index: 999
}

    #aoe-product-results li:hover, #aoe-search-results li button:hover {
        background: rgba(0,0,0,0.9)
    }

.aoe-history-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit,minmax(15rem,1fr))
}

.aoe-history-box {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: 0.5rem;
    max-height: 12rem;
    overflow-y: auto
}

    .aoe-history-box .box-title {
        background: rgba(255,255,255,0.1);
        font-weight: 600;
        padding: 0.75rem;
        text-align: center
    }

    .aoe-history-box li {
        border-bottom: 1px solid var(--aoe-border);
        cursor: pointer;
        padding: 0.5rem 0.75rem;
        transition: background 0.2s
    }

        #aoe-product-results .aoe-result-row:hover, .aoe-history-box li:hover {
            background: var(--aoe-bg-light)
        }

        .aoe-history-box li.selected {
            background: var(--aoe-accent-light);
            outline: 2px solid var(--aoe-accent);
            outline-offset: 2px
        }

#aoe-cart-body, .aoe-customer-details, .aoe-section, .aoe-shipping-block, .aoe-promo-block, .aoe-payment-block {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: 0.5rem;
    padding: 1rem
}

    #aoe-cart-body table, #aoe-shipping-packages table {
        border-collapse: collapse;
        width: 100%
    }

    #aoe-cart-body th, #aoe-cart-body td {
        padding: 0.75rem;
        text-align: left
    }

    #aoe-cart-body tbody tr:nth-child(even) {
        background: rgba(25,25,25,0.6)
    }

    #aoe-cart-body tbody tr:hover {
        background: rgba(236,134,57,0.1)
    }

#aoe-cart-totals p {
    margin: 0.5rem 0
}

#aoe-remove-first-item {
    margin: 1rem 0
}

.aoe-update-item, .aoe-remove-item, button, .button {
    background: var(--aoe-accent);
    border: none;
    border-radius: 0.375rem;
    color: #fff;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    transition: background 0.2s
}

.aoe-remove-item {
    background: transparent;
    color: #f44336
}

#aoe-shipping-packages th, #aoe-shipping-packages td {
    border: 1px solid var(--aoe-border);
    padding: 0.75rem
}

#aoe-promo-code {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0
}

#aoe-customer-addresses {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: 0.375rem;
    display: grid;
    font-size: 1rem;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    padding: 1rem
}

.addr-block {
    line-height: 1.4
}

#aoe-shipping-wrap {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: 0.375rem;
    padding: 0.5rem
}

    #aoe-payment-methods h3, #aoe-shipping-wrap h3 {
        border-bottom: 1px solid var(--aoe-border);
        font-size: 1.25rem;
        margin: 0 0 0.5rem;
        padding-bottom: 0.25rem
    }

#aoe-shipping-options li {
    line-height: 1;
    margin: 0 0 0.25rem;
    margin-bottom: 0.25rem
}

#aoe-shipping-options label {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem 0.1rem;
    transition: background 0.2s,border-color 0.2s
}

    #aoe-shipping-options label:hover {
        background: var(--aoe-bg-light);
        border-color: var(--aoe-border)
    }

#aoe-calc-shipping, #aoe-update-shipping {
    font-size: 0.95rem;
    margin-top: 0.25rem;
    padding: 0.4rem 0.8rem
}

#aoe-selected-shipping-cost {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.25rem
}

#aoe-payment-methods {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: 0.375rem;
    padding: 1rem
}

#aoe-payment-options li {
    margin-bottom: 0.75rem
}

#aoe-payment-options label {
    align-items: center;
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    transition: background 0.2s
}

    #aoe-payment-options label:hover {
        background: var(--aoe-bg)
    }

#aoe-payment-result {
    margin-top: 0.75rem
}

#aoe-cart-body.loading, .agent-order-emulator .loading {
    position: relative
}

    #aoe-cart-body.loading::before {
        animation: aoe-spin 0.8s linear infinite;
        border: 20px solid var(--aoe-bg-light);
        border-radius: 50%;
        border-top-color: var(--aoe-accent);
        content: "";
        display: block;
        height: 100px;
        left: 50%;
        margin: -12px 0 0 -12px;
        pointer-events: none;
        position: absolute;
        top: 50%;
        width: 100px;
        z-index: 10
    }

.aoe-qty {
    -moz-appearance: textfield;
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: 0.375rem;
    color: var(--aoe-text);
    font-size: 1rem;
    padding: 0.5rem;
    text-align: center;
    width: 4.5rem
}

    .aoe-qty::-webkit-inner-spin-button, .aoe-qty::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0
    }

    .aoe-qty:hover {
        border-color: var(--aoe-accent-light)
    }

    #aoe-cart-body .product-options select:focus, #aoe-new-customer-form .aoe-field input:focus, #aoe-new-customer-form .aoe-field select:focus, .aoe-qty:focus {
        border-color: var(--aoe-accent);
        box-shadow: 0 0 0 2px var(--aoe-accent-light);
        outline: none
    }

.agent-order-emulator h1, .agent-order-emulator h2, .agent-order-emulator h3 {
    color: #fff;
    font-weight: 600;
    margin: 1rem 0 0.5rem
}

.agent-order-emulator h2 {
    border-bottom: 2px solid var(--aoe-accent-light);
    font-size: 2rem;
    padding-bottom: 0.25rem
}

.agent-order-emulator h3 {
    border-bottom: 1px solid var(--aoe-border);
    font-size: 1.5rem;
    padding-bottom: 0.25rem
}

.aoe-customer-details h3 {
    align-items: center;
    color: var(--aoe-accent);
    display: flex;
    font-size: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1rem
}

.aoe-customer-details .button.small {
    background: var(--aoe-accent-light);
    border: none;
    border-radius: 0.25rem;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.2rem 0.6rem;
    transition: background 0.2s
}

.aoe-customer-display p {
    font-size: 1rem;
    margin: 0.5rem 0
}

.aoe-customer-display strong {
    color: var(--aoe-text);
    display: inline-block;
    width: 6rem
}

.aoe-customer-form {
    background: var(--aoe-bg);
    border: 1px solid var(--aoe-border);
    border-radius: 0.5rem;
    padding: 1rem
}

    .aoe-customer-form label {
        color: var(--aoe-text);
        display: block;
        font-size: 1rem;
        margin-bottom: 0.75rem
    }

    .aoe-customer-form input[type="text"] {
        background: var(--aoe-bg-light);
        border: 1px solid var(--aoe-border);
        border-radius: 0.25rem;
        color: var(--aoe-text);
        font-size: 1rem;
        line-height: 1.4;
        margin-top: 0.25rem;
        padding: 0.5rem;
        width: 100%
    }

    .aoe-customer-form .button {
        background: var(--aoe-accent);
        border: none;
        border-radius: 0.375rem;
        color: #fff;
        cursor: pointer;
        font-size: 1rem;
        margin-right: 0.5rem;
        padding: 0.5rem 1rem;
        transition: background 0.2s
    }

        .agent-order-emulator .button-primary:hover, .aoe-customer-form .button.button-primary, .aoe-toggle-switch input:checked + label {
            background: var(--aoe-accent)
        }

.aoe-customer-info-grid {
    display: flex;
    gap: var(--aoe-spacing);
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    margin-bottom: 1.5rem
}

.aoe-section h4 {
    border-bottom: 1px solid var(--aoe-border);
    color: var(--aoe-accent);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    padding-bottom: 0.25rem
}

.aoe-field {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--aoe-spacing-sm)
}

    .aoe-field label {
        color: var(--aoe-text);
        font-size: 1.25rem;
        font-weight: 600
    }

    .aoe-field span, .aoe-field input {
        font-size: 1.25rem;
        max-width: 60%
    }

    .aoe-field input {
        background: var(--aoe-bg);
        border: 1px solid var(--aoe-border);
        border-radius: var(--aoe-radius);
        color: var(--aoe-text);
        display: none;
        flex: 1;
        line-height: 1.4;
        padding: var(--aoe-spacing-sm);
        width: 100%
    }

.aoe-footer-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 30% 28% 40%;
    margin-top: 1.5rem
}

#aoe-promo-code > input, #aoe-promo-code > button, #aoe-promo-code > #aoe-promo-result {
    box-sizing: border-box;
    display: block;
    width: 100%
}

#aoe-promo-result .woocommerce-message {
    margin: 0
}

#aoe-shipping-wrap h3, #aoe-shipping-wrap h4 {
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0 0 0.25rem
}

#aoe-shipping-options {
    margin: 0;
    padding: 0
}

    #aoe-shipping-options label input[type="radio"] {
        margin-right: 0.4rem
    }

.aoe-customer-info-grid .aoe-field .aoe-value, .aoe-customer-info-grid .aoe-section.--edit .aoe-field input, .aoe-customer-info-grid.--edit .aoe-field input, .aoe-field span, .aoe-section .aoe-field .aoe-value, .aoe-section.--edit .aoe-field input {
    display: block
}

.aoe-customer-info-grid.--edit .aoe-field {
    align-items: center;
    display: flex
}

    #aoe-cart-body .product-options select::-ms-expand, #aoe-product-results:empty, .aoe-customer-info-grid .aoe-field input, .aoe-customer-info-grid .aoe-section.--edit .aoe-field .aoe-value, .aoe-customer-info-grid.--edit .aoe-field span, .aoe-section .aoe-field input, .aoe-section.--edit .aoe-field .aoe-value, .braintree-hidden, .wapf-edit-cartitem {
        display: none
    }

.aoe-customer-details .button.small.edit-toggle::after {
    content: "Edit"
}

.aoe-customer-details .button.small.save-toggle::after {
    content: "Save"
}

.aoe-section-edit-btn {
    background: none;
    border: none;
    color: var(--aoe-accent);
    cursor: pointer;
    float: right;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0
}

    .aoe-section-edit-btn:hover {
        color: var(--aoe-accent-hover)
    }

#cc-ai-chat-container {
    background: var(--chat-bg);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6),inset 0 0 15px rgba(255,255,255,0.05);
    margin: 2rem auto;
    padding: 1.5rem;
    transition: transform 0.4s ease,box-shadow 0.4s ease
}

    #cc-ai-chat-container #chat-box {
        animation: slideIn 0.5s ease-in-out;
        background: var(--chat-bg-light);
        border: 1px solid var(--chat-border);
        border-radius: 15px;
        color: var(--chat-text);
        display: flex;
        flex-direction: column;
        font: 1rem/1.4 "Roboto",sans-serif;
        gap: 0.5rem;
        min-height: 200px;
        overflow-y: auto;
        padding: 1rem;
        scrollbar-color: var(--chat-accent) var(--chat-bg);
        scrollbar-width: thin
    }

        #cc-ai-chat-container #chat-box::-webkit-scrollbar {
            width: 8px
        }

        #cc-ai-chat-container #chat-box::-webkit-scrollbar-track {
            background: var(--chat-bg)
        }

        #cc-ai-chat-container #chat-box::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg,var(--chat-accent),var(--chat-accent-hover));
            border-radius: 10px
        }

.message {
    animation: fadeIn 0.4s ease-in-out;
    backdrop-filter: blur(2px);
    border-radius: 12px;
    max-width: 80%;
    padding: 0.75rem 1rem;
    position: relative;
    transition: transform 0.2s ease,box-shadow 0.3s ease
}

    .message img {
        border-radius: 8px;
        display: block;
        margin-bottom: 5px;
        max-width: 100px
    }

.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg,#ff8c00,#fe841b);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    color: #fff
}

    .user-message:hover {
        box-shadow: 0 6px 12px rgba(255,140,0,0.6);
        transform: translatey(-3px)
    }

    .user-message::after {
        border: 7px solid transparent;
        border-left-color: #fe841b;
        content: "";
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translatey(-50%)
    }

.ai-message {
    align-self: flex-start;
    background: linear-gradient(135deg,#3a3a3a,#2a2a2a);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: var(--chat-text)
}

    .ai-message:hover {
        background: linear-gradient(135deg,#4a4a4a,#3a3a3a);
        box-shadow: 0 6px 12px rgba(50,50,50,0.4);
        transform: translatey(-3px)
    }

    .ai-message::after {
        border: 7px solid transparent;
        border-right-color: #3a3a3a;
        content: "";
        left: -8px;
        position: absolute;
        top: 50%;
        transform: translatey(-50%)
    }

    .ai-message.new-response {
        animation: highlight 1s ease-in-out
    }

.message a {
    color: var(--chat-accent);
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s
}

    .message a:hover {
        color: #ffa15c;
        text-decoration: none
    }

.input-area {
    border-top: 1px solid var(--chat-border);
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem
}

    .input-area input {
        background: var(--chat-bg-light);
        border: 1px solid var(--chat-border);
        border-radius: 8px;
        color: var(--chat-text);
        flex: 1;
        font: 0.9rem/1.4 "Roboto",sans-serif;
        outline: none;
        padding: 0.75rem 1rem;
        transition: border-color 0.3s,box-shadow 0.3s
    }

        .input-area input:focus {
            border-color: var(--chat-accent);
            box-shadow: 0 0 8px var(--chat-accent-light)
        }

    .input-area button {
        background: linear-gradient(135deg,var(--chat-accent),var(--chat-accent-hover));
        border: none;
        border-radius: 8px;
        color: #fff;
        cursor: pointer;
        padding: 0.75rem 1.5rem;
        transition: background 0.3s,box-shadow 0.3s,transform 0.2s
    }

        .input-area button:hover {
            background: linear-gradient(135deg,var(--chat-accent-hover),var(--chat-accent));
            box-shadow: 0 6px 12px rgba(236,134,57,0.4);
            transform: translatey(-2px)
        }

        .input-area button:disabled {
            background: #555;
            box-shadow: none;
            cursor: not-allowed
        }

:root {
    /* Accent colors from your Bricks palette */
    --aoe-accent: #615341; /* primary */
    --aoe-accent-hover: #83755d; /* secondary */
    --aoe-accent-light: rgba(97, 83, 65, 0.2); /* primary @ 20% */
    /* Backgrounds */
    --aoe-bg: rgba(55, 47, 37, 0.85); /* dark @ 85% */
    --aoe-bg-light: rgba(55, 47, 37, 0.9); /* dark @ 60% */
    /* Borders & text */
    --aoe-border: rgba(189, 179, 166, 0.1); /* border from light color @ 10% */
    --aoe-text: #fff; /* light */
    /* Shapes & spacing */
    --aoe-radius: 0.375rem;
    --aoe-spacing: 1rem;
    --aoe-spacing-sm: 0.5rem;
    /* Spinner sizes */
    --aoe-spinner-large: 5rem;
    --aoe-spinner-medium: 3rem;
    --aoe-spinner-size: 64px;
    --aoe-spinner-thickness: 0.25rem;
    --aoe-spinner-inner-scale: 0.6;
    /* Transitions */
    --aoe-transition-fast: 0.25s;
    --aoe-transition-medium: 0.35s;
}


.agent-order-emulator {
    background: var(--aoe-bg);
    border: 1px solid var(--aoe-border);
    border-radius: 0.5rem;
    color: var(--aoe-text);
    flex: 0 0 180px;
    padding: 0.75rem;
    text-align: center;
}

/* Container */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--aoe-spinner-size);
    height: var(--aoe-spinner-size);
    margin: calc(-1 * var(--aoe-spinner-size) / 2);
    perspective: 800px;
}

    /* The three “planes” */
    .loader .inner {
        position: absolute;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

    .loader .one {
        top: 0;
        left: 0;
        border-bottom: var(--aoe-spinner-thickness) solid var(--aoe-accent);
        animation: rotate-one 1s linear infinite;
    }

    .loader .two {
        top: 0;
        right: 0;
        border-right: var(--aoe-spinner-thickness) solid var(--aoe-accent);
        animation: rotate-two 1s linear infinite;
    }

    .loader .three {
        bottom: 0;
        right: 0;
        border-top: var(--aoe-spinner-thickness) solid var(--aoe-accent);
        animation: rotate-three 1s linear infinite;
    }

/* Keyframes */
@keyframes rotate-one {
    to {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes rotate-two {
    to {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes rotate-three {
    to {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

.ai-products-container {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem
}

.ai-product-card {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: 0.5rem;
    color: var(--aoe-text);
    flex: 0 0 180px;
    padding: 0.75rem;
    text-align: center
}

    .ai-product-card img {
        border-radius: 0.25rem;
        height: auto;
        margin-bottom: 0.5rem;
        max-width: 100%
    }

    .ai-product-card h4 {
        font-size: 1rem;
        margin: 0.5rem 0 0.25rem
    }

    .ai-product-card p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem
    }

.ai-product-actions a, .ai-product-actions button {
    background: var(--aoe-accent);
    border: none;
    border-radius: 0.25rem;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 0.85rem;
    margin: 0.25rem 0.125rem;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    transition: background 0.2s
}

.agent-order-emulator .button, .agent-order-emulator #aoe-apply-promo, .agent-order-emulator #aoe-calc-shipping, .agent-order-emulator #aoe-update-shipping, .agent-order-emulator #aoe-pay-order, .agent-order-emulator .aoe-update-item, .agent-order-emulator .aoe-remove-item, .agent-order-emulator .ai-product-actions button, .agent-order-emulator .ai-product-actions a {
    background: var(--aoe-accent) !important;
    border: none;
    border-radius: 0.375rem;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 1rem;
    margin: 0.5rem 0;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
    width: 100%
}

    .agent-order-emulator .button:disabled, .agent-order-emulator #aoe-apply-promo:disabled, .agent-order-emulator #aoe-calc-shipping:disabled, .agent-order-emulator #aoe-update-shipping:disabled, .agent-order-emulator #aoe-pay-order:disabled {
        background: #555;
        cursor: not-allowed;
        opacity: 0.6
    }

.loading-dots span {
    animation: blink 1s infinite;
    background: var(--aoe-accent);
    border-radius: 50%;
    display: inline-block;
    height: 6px;
    margin: 0 2px;
    width: 6px
}

    .loading-dots span:nth-child(2) {
        animation-delay: 0.2s
    }

    .loading-dots span:nth-child(3) {
        animation-delay: 0.4s
    }

.system-message, .progress-message {
    animation: fadeIn 0.3s forwards;
    color: #aaa;
    font-style: italic;
    opacity: 0
}

.braintree-card.braintree-form.braintree-sheet {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: 0.5rem;
    color: var(--aoe-text);
    font-family: sans-serif;
    padding: 1rem
}

.braintree-sheet__header {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--aoe-border);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem
}

.braintree-form__label {
    color: var(--aoe-text);
    font-size: 1rem;
    margin-bottom: 0.25rem
}

.braintree-sheet__card-icon svg, .braintree-form__icon svg {
    background: transparent;
    border-radius: 0.25rem;
    padding: 2px
}

.braintree-form__field-error-icon svg {
    fill: #f44336
}

.braintree-form__field {
    background: var(--aoe-bg);
    border: 1px solid var(--aoe-border);
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem
}

.braintree-form__field-error {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.25rem
}

.braintree-form__checkbox input[type="checkbox"] {
    accent-color: var(--aoe-accent)
}

#aoe-new-customer-form {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: var(--aoe-radius);
    margin-top: var(--aoe-spacing);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: var(--aoe-spacing);
    transform: translatey(-10px);
    transition: max-height var(--aoe-transition-medium) ease,opacity var(--aoe-transition-medium) ease,transform var(--aoe-transition-medium) ease;
    visibility: hidden
}

    #aoe-new-customer-form.show {
        max-height: 1000px;
        opacity: 1;
        transform: translatey(0);
        visibility: visible
    }

    #aoe-new-customer-form h4 {
        border-bottom: 1px solid var(--aoe-border);
        color: var(--aoe-accent);
        font-size: 1.25rem;
        margin-bottom: var(--aoe-spacing-sm);
        padding-bottom: var(--aoe-spacing-sm)
    }

    #aoe-new-customer-form .aoe-field {
        display: flex;
        flex-direction: column;
        margin-bottom: var(--aoe-spacing)
    }

        #aoe-new-customer-form .aoe-field label {
            color: var(--aoe-text);
            font-size: 1rem;
            margin-bottom: var(--aoe-spacing-sm)
        }

        #aoe-new-customer-form .aoe-field input, #aoe-new-customer-form .aoe-field select {
            background: var(--aoe-bg);
            border: 1px solid var(--aoe-border);
            border-radius: var(--aoe-radius);
            color: var(--aoe-text);
            font-size: 1rem;
            padding: var(--aoe-spacing-sm);
            transition: border-color var(--aoe-transition-fast),box-shadow var(--aoe-transition-fast);
            width: 100%
        }

#aoe-submit-new-customer {
    padding: var(--aoe-spacing-sm) 0;
    width: 100%
}

#aoe-new-cust-result {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: var(--aoe-spacing-sm);
    min-height: 1.2rem
}

.aoe-new-customer-grid.three-col {
    display: grid;
    gap: var(--aoe-spacing);
    grid-template-columns: repeat(3,1fr);
    margin-bottom: var(--aoe-spacing)
}

.aoe-customer-info-grid .aoe-section {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: var(--aoe-radius);
    flex: 1 1 0;
    padding: var(--aoe-spacing)
}

    .aoe-customer-info-grid .aoe-section h4 {
        align-items: center;
        border-bottom: 1px solid var(--aoe-border);
        color: var(--aoe-accent);
        display: flex;
        font-size: 1.25rem;
        justify-content: space-between;
        margin-bottom: var(--aoe-spacing-sm);
        padding-bottom: var(--aoe-spacing-sm)
    }

.aoe-field .aoe-value {
    flex: 1;
    text-align: right
}

#aoe-new-customer-form.show .aoe-field, #aoe-new-customer-form.show .aoe-field label, #aoe-new-customer-form.show .aoe-field input, #aoe-new-customer-form.show .aoe-field select, #aoe-new-customer-form.show .aoe-field textarea {
    display: block;
    max-height: none;
    opacity: 1;
    transform: none;
    visibility: visible
}

#aoe-new-customer-form.show .aoe-field {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 0.75rem
}

    #aoe-new-customer-form.show .aoe-field label, .agent-order-emulator td.product-options .wapf-field label, .agent-order-emulator td.product-options .wapf-field select {
        margin-bottom: 0.25rem
    }

    #aoe-new-customer-form.show .aoe-field input, #aoe-new-customer-form.show .aoe-field select, #aoe-new-customer-form.show .aoe-field textarea {
        box-sizing: border-box;
        width: 100%
    }

.aoe-totals-notes {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem
}

.aoe-notes-panels {
    display: flex;
    flex: 0 0 60%;
    flex-direction: column;
    gap: var(--aoe-spacing)
}

.aoe-notes-panel {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: var(--aoe-radius);
    overflow: hidden;
    transition: all 0.2s ease
}

    .aoe-notes-panel:not([open]) .aoe-notes-body {
        display: none;
        height: 0;
        margin: 0;
        padding: 0
    }

    .aoe-notes-panel[open] .aoe-notes-body {
        display: flex;
        flex-direction: column;
        gap: var(--aoe-spacing);
        padding: var(--aoe-spacing)
    }

    .aoe-notes-panel > summary {
        align-items: center;
        color: var(--aoe-accent);
        cursor: pointer;
        display: flex;
        font-weight: 600;
        justify-content: space-between;
        padding: var(--aoe-spacing);
        user-select: none
    }

    .aoe-notes-panel[open] > summary {
        background: var(--aoe-accent-light)
    }

.aoe-save-notes {
    background: var(--aoe-accent);
    border: none;
    border-radius: var(--aoe-radius);
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.4em 0.8em;
    transition: background 0.2s
}

    .aoe-save-notes:disabled {
        cursor: default;
        opacity: 0.5
    }

.aoe-notes-body textarea {
    background: var(--aoe-bg);
    border: 1px solid var(--aoe-border);
    border-radius: var(--aoe-radius);
    color: var(--aoe-text);
    min-height: 6em;
    padding: 0.75em;
    resize: vertical;
    width: 100%
}

/* ─── Readable Two-State Toggle Switch ─────────────────────────────────── */
.aoe-toggle-switch {
    --toggle-width: 6rem;
    --toggle-height: 2.5rem;
    display: inline-block;
    position: relative;
}

    .aoe-toggle-switch input {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0;
        cursor: pointer;
        z-index: 2;
    }

    .aoe-toggle-switch label {
        /* grid with two equal cells for OFF/ON */
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 200px !important;
        height: var(--toggle-height) !important;
        background: var(--aoe-bg-light) !important;
        border: 1px solid var(--aoe-border) !important;
        border-radius: var(--aoe-radius) !important;
        overflow: hidden;
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: var(--aoe-text) !important;
        box-sizing: border-box;
    }

        /* Place text centered in each half */
        .aoe-toggle-switch label::before,
        .aoe-toggle-switch label::after {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 var(--aoe-spacing-sm);
            box-sizing: border-box;
        }

        .aoe-toggle-switch label::before {
            content: attr(data-off); /* left cell = “Private” */
        }

        .aoe-toggle-switch label::after {
            content: attr(data-on); /* right cell = “Customer” */
        }

    /* Highlight the active side */
    .aoe-toggle-switch input:not(:checked) + label::before {
        background: var(--aoe-accent) !important;
        color: #fff !important;
    }

    .aoe-toggle-switch input:checked + label::after {
        background: var(--aoe-accent) !important;
        color: #fff !important;
    }


#aoe-cart-body .product-options select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background: var(--aoe-bg-light);
    background-image: url("data:image/svg+xml;charset=UTF8,\\a <svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'>\\a <polyline points='0,0 5,6 10,0' fill='none' stroke='%23EEE' stroke-width='2'/>\\a </svg>");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 0.65rem;
    border: 1px solid var(--aoe-border);
    border-radius: 0.375rem;
    color: var(--aoe-text);
    cursor: pointer;
    font: inherit;
    line-height: 1.4;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    transition: border-color 0.2s,box-shadow 0.2s
}

#aoe-search-results li button {
    font-size: 1.4rem;
    font-weight: 500
}

#aoe-product-results .aoe-result-row {
    align-items: center;
    border-bottom: 1px solid var(--aoe-border);
    cursor: pointer;
    display: flex;
    padding: 0.75rem
}

#aoe-product-results .col {
    box-sizing: border-box;
    padding: 0 0.75rem
}

#aoe-product-results .col-product {
    align-items: center;
    display: flex;
    width: 60%
}

.aoe-thumb {
    border-radius: 4px;
    height: 40px;
    margin: 1rem;
    object-fit: cover;
    width: 40px
}

.aoe-meta .aoe-breadcrumbs {
    color: #aaa;
    font-size: 1rem
}

.aoe-meta .aoe-label {
    color: var(--aoe-text);
    font-size: 1.5rem;
    font-weight: 600
}

.aoe-meta .aoe-sku {
    color: #666;
    font-size: 1rem
}

#aoe-product-results .col-stock {
    font-size: 1.1rem;
    text-align: center;
    width: 30%
}

.agent-order-emulator #aoe-cart-body .custom-stock-status.in-stock strong:first-of-type, .agent-order-emulator .aoe-stock-status.in-stock, .agent-order-emulator .custom-stock-status.in-stock strong:first-of-type, .in-stock-custom-stock-status {
    color: #28a745
}

.agent-order-emulator #aoe-cart-body .custom-stock-status.out-of-stock strong:first-of-type, .agent-order-emulator .aoe-stock-status.out-of-stock, .agent-order-emulator .custom-stock-status.out-of-stock strong:first-of-type, .out-of-stock-custom-stock-status {
    color: #dc3545
}

.agent-order-emulator #aoe-cart-body .custom-stock-status.backorder strong:first-of-type, .agent-order-emulator .aoe-stock-status.available-on-backorder, .agent-order-emulator .custom-stock-status.available-on-backorder strong:first-of-type, .agent-order-emulator .custom-stock-status.backorder strong:first-of-type, .available-on-backorder-custom-stock-status {
    color: #ffc107
}

#aoe-product-results .col-price {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: right;
    width: 10%
}

.aoe-result-breadcrumbs {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 0.25rem
}

.aoe-result-info .aoe-product-label {
    color: var(--aoe-text);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.25rem
}

.aoe-result-info .aoe-available-qty {
    color: var(--aoe-accent);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.25rem
}

.aoe-result-info .aoe-price {
    color: var(--aoe-accent);
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 0.5rem
}

.aoe-history-box ul li.aoe-order-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem
}

    .aoe-history-box ul li.aoe-order-item .aoe-order-row {
        align-items: flex-start;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between
    }

    .aoe-history-box ul li.aoe-order-item .aoe-order-info {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        gap: 0.25rem;
        min-width: 0
    }

    .aoe-history-box ul li.aoe-order-item .aoe-order-total {
        color: var(--aoe-accent);
        flex: 0 0 auto;
        font-size: 1.25rem;
        font-weight: 600;
        margin-left: 1rem;
        white-space: nowrap
    }

    .aoe-history-box ul li.aoe-order-item .aoe-order-link {
        color: var(--aoe-text);
        font-size: 1.125rem;
        font-weight: 600;
        text-decoration: none
    }

        .aoe-history-box ul li.aoe-order-item .aoe-order-link:hover, .aoe-history-box ul li.aoe-order-item .aoe-track-link:hover {
            text-decoration: underline
        }

    .aoe-history-box ul li.aoe-order-item .aoe-order-status {
        color: #bbb;
        font-size: 0.9em;
        font-weight: normal
    }

    .aoe-history-box ul li.aoe-order-item .aoe-order-summary {
        color: #666;
        font-size: 0.9rem;
        margin-top: 0.25rem
    }

    .aoe-history-box ul li.aoe-order-item .aoe-order-tracking {
        color: var(--aoe-accent-hover);
        font-size: 0.9rem;
        margin-top: 0.25rem
    }

    .aoe-history-box ul li.aoe-order-item .aoe-track-link {
        color: var(--aoe-accent);
        margin-right: 0.5rem;
        text-decoration: none
    }

.aoe-history-box ul li.aoe-purchased-item {
    display: flex;
    flex-direction: column;
    font-size: 1.05rem;
    gap: 0.5rem;
    line-height: 1.3
}

    .aoe-history-box ul li.aoe-purchased-item .aoe-purchased-row {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between
    }

    .aoe-history-box ul li.aoe-purchased-item .aoe-purchased-info {
        align-items: center;
        display: flex;
        flex: 1 1 auto;
        gap: 0.75rem;
        min-width: 0
    }

    .aoe-history-box ul li.aoe-purchased-item .aoe-purchased-qty, .aoe-history-box ul li.aoe-purchased-item .aoe-purchased-sku {
        color: #666;
        font-size: 0.9rem
    }

    .aoe-history-box ul li.aoe-purchased-item .aoe-purchased-stock {
        box-sizing: border-box;
        flex: 0 0 200px;
        font-size: 1rem;
        line-height: 1.4;
        padding-left: 1rem;
        text-align: right
    }

        .aoe-history-box ul li.aoe-purchased-item .aoe-purchased-stock .aoe-stock-status {
            display: inline-block;
            white-space: normal
        }

.aoe-purchased-available {
    color: var(--aoe-accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.25rem
}

.aoe-history-box ul li.aoe-purchased-item .aoe-purchased-thumb {
    border: 1px solid var(--aoe-border);
    border-radius: 4px;
    height: 48px;
    object-fit: cover;
    width: 48px
}

.aoe-history-box ul li.aoe-purchased-item .aoe-purchased-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0
}

.aoe-history-box ul li.aoe-purchased-item .aoe-purchased-name {
    color: var(--aoe-text);
    font-size: 1.15rem;
    font-weight: 600;
    overflow-wrap: break-word
}

.aoe-history-box ul li.aoe-purchased-item .aoe-purchased-price {
    color: var(--aoe-accent);
    font-size: 1rem;
    font-weight: 500
}

.aoe-history-box ul li.aoe-purchased-item .aoe-purchased-available {
    color: var(--aoe-accent-hover);
    font-size: 0.9rem;
    font-style: italic
}

.agent-order-emulator #aoe-cart-body thead th {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em
}

.agent-order-emulator #aoe-cart-body .woocommerce-Price-amount.amount bdi, .agent-order-emulator .woocommerce-Price-amount.amount bdi {
    font-size: 1.3rem;
    font-weight: 600
}

.agent-order-emulator .aoe-product-name {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1
}

.agent-order-emulator td.product-options .wapf-field {
    line-height: 1.2;
    margin-bottom: 0.25rem
}

    .agent-order-emulator td.product-options .wapf-field br {
        content: none;
        display: none
    }

[data-braintree-id="card-sheet-header"] .braintree-sheet__text {
    color: #fff;
    font-family: "Inter",sans-serif;
    font-size: 1.25rem;
    font-weight: 600
}

[data-braintree-id="card-sheet-header"] {
    background: #1e1e1e;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem
}

.aoe-clear-cart-section {
    flex: 0 0 100%;
    margin-top: 1.5rem;
    text-align: center
}

.aoe-toggle-switch input:focus + label {
    box-shadow: 0 0 0 3px var(--aoe-accent-light)
}

.agent-order-emulator .aoe-stock-status {
    border-radius: 0.25em;
    display: inline-block;
    font-size: 0.85em;
    line-height: 1;
    padding: 0.1em 0.4em
}

.agent-order-emulator details, .agent-order-emulator details summary, .agent-order-emulator details .aoe-notes-body {
    font-size: 0.9em;
    font-style: italic;
    line-height: 1.2
}

.agent-order-emulator .custom-stock-status {
    background: rgba(255,255,255,0.05);
    border-radius: 0.25em;
    color: var(--aoe-text);
    display: inline-block;
    font-size: 0.9em;
    font-style: italic;
    line-height: 1.2;
    padding: 0.1em 0.4em
}

    .agent-order-emulator #aoe-cart-body .custom-stock-status strong:first-of-type, .agent-order-emulator .custom-stock-status strong:first-of-type {
        font-size: 1em;
        font-style: normal;
        font-weight: bold
    }

.agent-order-emulator #aoe-cart-body .custom-stock-status {
    color: var(--aoe-text)
}

.aoe-product-wrapper {
    font-size: 0
}

    .aoe-product-wrapper > a.aoe-product-name, .aoe-product-wrapper > span, .aoe-product-wrapper > div {
        font-size: 1rem;
        line-height: 1.4
    }

#hf-cardholder-name, #hf-card-number, #hf-expiration-date, #hf-cvv, #hf-postal-code {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.75em;
    padding: 1em 1em;
    pointer-events: none;
    position: relative;
    transition: border-color 0.15s ease,box-shadow 0.15s ease;
    width: 100%
}

    #hf-cardholder-name iframe, #hf-card-number iframe, #hf-expiration-date iframe, #hf-cvv iframe, #hf-postal-code iframe {
        border: none;
        height: 100%;
        left: 0;
        pointer-events: auto;
        position: absolute;
        top: 0;
        width: 100%
    }

    #hf-cardholder-name.braintree-hosted-fields-focused, #hf-card-number.braintree-hosted-fields-focused, #hf-expiration-date.braintree-hosted-fields-focused, #hf-cvv.braintree-hosted-fields-focused, #hf-postal-code.braintree-hosted-fields-focused {
        border-color: #007cba;
        box-shadow: 0 0 0 2px rgba(0,124,186,0.2)
    }

    #hf-cardholder-name::placeholder, #hf-card-number::placeholder, #hf-expiration-date::placeholder, #hf-cvv::placeholder, #hf-postal-code::placeholder {
        color: #999
    }

@media (max-width:600px) {
    .aoe-customer-details h3 {
        align-items: flex-start;
        flex-direction: column
    }

    .aoe-customer-details .button.small {
        margin-top: 0.5rem
    }

    :root {
        --aoe-spinner-medium: 2rem
    }

    .aoe-history-box ul li.aoe-purchased-item .aoe-purchased-row {
        flex-direction: column;
        gap: 0.75rem
    }

    .aoe-history-box ul li.aoe-purchased-item .aoe-purchased-stock {
        flex: 1 1 auto;
        padding-left: 0;
        text-align: left
    }
}

@media (max-width:500px) {
    .aoe-customer-info-grid {
        grid-template-columns: 1fr
    }

    .aoe-field {
        align-items: flex-start;
        flex-direction: column
    }

        .aoe-field label {
            margin-bottom: 0.25rem
        }

        .aoe-field span, .aoe-field input {
            max-width: 100%;
            text-align: left
        }

    .aoe-history-box ul li.aoe-order-item .aoe-order-row {
        flex-direction: column;
        gap: 0.5rem
    }

    .aoe-history-box ul li.aoe-order-item .aoe-order-total {
        margin-left: 0
    }
}

@media (max-width:800px) {
    .aoe-footer-row {
        grid-template-columns: 1fr
    }
}

@media (max-width:768px) {
    .aoe-new-customer-grid.three-col {
        grid-template-columns: 1fr
    }

    .aoe-customer-info-grid {
        flex-direction: column
    }
}
/* ─── Promo & Credits Block ───────────────────────────────────────── */
.aoe-promo-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: var(--aoe-radius);
    padding: 1rem;
}

    .aoe-promo-block .flex-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .aoe-promo-block .panel {
        flex: 1 1 250px;
        background: var(--aoe-bg);
        border: 1px solid var(--aoe-border);
        border-radius: var(--aoe-radius);
        padding: 1rem;
    }

    .aoe-promo-block .full-width {
        width: 100%;
    }

    .aoe-promo-block .mt-2 {
        margin-top: 0.5rem;
    }

    .aoe-promo-block .button.block {
        display: block;
        width: 100%;
    }

/* Fees & Credits form */
.fee-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

    .fee-form input {
        flex: 1;
        background: var(--aoe-bg-light);
        border: 1px solid var(--aoe-border);
        border-radius: var(--aoe-radius);
        color: var(--aoe-text);
        padding: 0.5rem;
    }

    .fee-form .button.small {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }

/* Itemized table */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

    .fee-table th,
    .fee-table td {
        border: 1px solid var(--aoe-border);
        padding: 0.75rem;
    }

    .fee-table thead th {
        background: var(--aoe-bg);
        text-align: left;
    }

    .fee-table tbody tr:nth-child(even) {
        background: rgba(255,255,255,0.05);
    }

    .fee-table tfoot td {
        font-weight: 600;
        text-align: right;
    }

/* ─── Payment Methods ─────────────────────────────────────────────── */
#aoe-payment-methods {
    background: var(--aoe-bg-light);
    border: 1px solid var(--aoe-border);
    border-radius: var(--aoe-radius);
    padding: 1rem;
}

#aoe-payment-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

    #aoe-payment-options li {
        margin-bottom: 0.75rem;
    }

    #aoe-payment-options label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: var(--aoe-bg);
        border: 1px solid var(--aoe-border);
        border-radius: var(--aoe-radius);
        padding: 0.5rem;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s;
    }

        #aoe-payment-options label:hover {
            background: var(--aoe-bg-light);
            border-color: var(--aoe-border);
        }

    #aoe-payment-options input[type="radio"] {
        margin-right: 0.4rem;
    }

/* ─── Input / Hosted-Field Styling (excludes checkbox & radio) ───── */
#aoe-new-card-container input:not([type="checkbox"]):not([type="radio"]),
#aoe-new-card-container select,
#aoe-new-card-container textarea,
#hf-cardholder-name,
#hf-card-number,
#hf-expiration-date,
#hf-cvv,
#hf-postal-code {
    background: var(--aoe-bg-light) !important;
    border: 1px solid var(--aoe-border) !important;
    border-radius: var(--aoe-radius) !important;
    box-sizing: border-box !important;
    padding: var(--aoe-spacing-sm) !important;
    width: 100% !important;
    color: #fff !important;
    font-size: 1rem !important;
    margin-bottom: var(--aoe-spacing) !important;
    height: 2.5rem !important;
}

    /* Hosted-Field iframes fill wrapper */
    #hf-cardholder-name iframe,
    #hf-card-number iframe,
    #hf-expiration-date iframe,
    #hf-cvv iframe,
    #hf-postal-code iframe {
        width: 100% !important;
        height: 100% !important;
        border: none !important;
    }

/* Reset checkbox & radio back to natural size */
#aoe-new-card-container input[type="checkbox"],
#aoe-new-card-container input[type="radio"] {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ─── Save-Card Label Inline Flex ───────────────────────────────── */
#aoe-new-card-container > label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: var(--aoe-spacing) !important;
    color: var(--aoe-text) !important;
    font-size: 1rem !important;
}

/* Keep the accent color on the checkbox */
#aoe-store-card {
    accent-color: var(--aoe-accent) !important;
}


/* Flex wrapper for Expiration/CVV grouping */
.bt-field[style*="display:flex"] {
    display: flex !important;
    gap: var(--aoe-spacing-sm) !important;
}

    .bt-field[style*="display:flex"] > div {
        flex: 1 !important;
    }

/* Labels matching other emulator inputs */
.bt-field label {
    display: block !important;
    margin-bottom: 0.25rem !important;
    color: var(--aoe-text) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

/* ─── Charge Button ─────────────────────────────────────────────── */
#aoe-pay-order.button-primary {
    background: var(--aoe-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--aoe-radius) !important;
    padding: 0.75rem 1.5rem !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

    #aoe-pay-order.button-primary:hover {
        background: var(--aoe-accent-hover) !important;
    }

/* ─── Checkbox Accent ───────────────────────────────────────────── */
#aoe-store-card {
    accent-color: var(--aoe-accent) !important;
}
