#loom-cod-modal.loom-cod-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 0;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transform: translateZ(0);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#loom-cod-modal.loom-cod-modal-overlay.open {
    display: flex !important;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    will-change: backdrop-filter, background;
}

.loom-cod-modal-content {
    background: #fff;
    width: 92%;
    max-width: 480px;
    margin: auto;
    border-radius: 12px;
    position: relative;
    font-family: inherit;
    border: 2px solid var(--brand-primary);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#loom-cod-modal.open .loom-cod-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.loom-cod-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loom-cod-header {
    text-align: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
}

.loom-cod-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.loom-cod-header p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #777;
}

.loom-cod-body {
    padding: 15px 20px 25px;
    text-align: start;
}


.loom-cod-product-summary {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 6px 0;
    border-bottom: 1px solid #f2f2f2;
    direction: inherit;
    gap: 10px;
}

.loom-cod-product-summary:first-child {
    border-top: 1px solid #f2f2f2;
}

.loom-cod-product-summary:last-child {
    margin-bottom: 8px;
}

.loom-cod-thumb-wrapper {
    position: relative;
    flex-shrink: 0;
    order: 1;
}

.loom-cod-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.loom-cod-qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #888;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    border: 1.5px solid #fff;
}

.loom-cod-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: start;
    order: 2;
}

.loom-cod-pname {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.loom-cod-remove-item {
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: 0.2s;
    order: 3;
}

.loom-cod-remove-item:hover {
    color: #f44;
}

.loom-cod-price {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    justify-content: flex-start;
}

.loom-cod-price del {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.35);
    text-decoration: none;
    position: relative;
    display: inline-block;
    order: 2;
    margin: 0;
}

.loom-cod-price del::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: currentColor;
    transform: translateY(-50%);
}

.loom-cod-price ins {
    text-decoration: none;
    font-size: 15px;
    color: #000;
    display: inline-block;
    order: 1;
    margin: 0;
}

.loom-cod-price .amount {
    text-decoration: none;
}

.loom-cod-variations {
    margin-bottom: 20px;
}

.loom-product-page-variations {
    margin-bottom: 25px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.loom-product-page-variations .loom-cod-attr-group:last-child {
    margin-bottom: 0;
}

/* Hide default WooCommerce variations form on single product page */
.single-product .variations_form.cart,
.single-product .single_add_to_cart_button,
.single-product .quantity,
.single-product .variations,
.single-product .woocommerce-variation {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.loom-cod-attr-group {
    margin-bottom: 15px;
}

.loom-cod-attr-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.loom-cod-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.loom-swatch {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    background-color: #f9f9f9;
    background-size: cover;
    background-position: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.loom-swatch.selected {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--brand-primary-rgb, 0, 0, 0), 0.25);
}

.loom-swatch:not(.selected):hover {
    border-color: #bbb;
    background-color: #f2f2f2;
}

.loom-swatch.out-of-stock {
    opacity: 0.45;
    pointer-events: none;
    position: relative;
    cursor: not-allowed;
    border-color: #f0f0f0;
}

.loom-swatch.out-of-stock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #ff4d4d;
    transform: rotate(-45deg);
    z-index: 2;
}

.loom-cod-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.loom-input-wrapper {
    position: relative;
}

.loom-icon {
    position: absolute;
    inset-inline-start: 1px;
    top: 1px;
    bottom: 1px;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-wash, #f1f1f5);
    width: 44px;
    border-radius: 9px 0 0 9px;
    border-inline-end: 1px solid #dadae5;
    z-index: 2;
    pointer-events: none;
}



.loom-icon svg {
    width: 18px;
    height: 18px;
}

.loom-input-wrapper input {
    width: 100%;
    padding-block: 8px;
    padding-inline: 54px 15px;
    border: 1px solid #dadae5;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    background: #fff;
    text-align: start;
    direction: inherit;
    min-height: 44px;
    box-sizing: border-box;
    color: #333;
}

.loom-input-wrapper input::placeholder {
    color: #a0a0ab;
    opacity: 1;
}

.loom-input-wrapper input:focus {
    border-color: var(--brand-primary);
}

.loom-cod-totals {
    background: #f9f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.loom-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.loom-shipping .loom-val-shipping {
    color: #2e8b57;
    font-weight: 600;
}

.loom-grand-total {
    font-weight: 700;
    font-size: 16px !important;
    color: #222;
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid #ebebeb;
}

.loom-cod-submit-btn {
    width: 100%;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.3s, filter 0.3s;
    min-height: 52px;
}

.loom-cod-submit-btn.loading>*:not(.loom-cod-btn-spinner) {
    display: none;
}

.loom-cod-submit-btn.loading .loom-cod-btn-spinner {
    display: flex !important;
}

.loom-cod-submit-btn:hover {
    background: var(--brand-deep);
}

.loom-cod-btn-texts {
    display: flex;
    flex-direction: column;
    text-align: inherit;
}

.loom-offer-price-box {
    text-align: end;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: margin-top 0.3s;
    align-items: flex-end; /* Ensure flex children only take content width */
}

.loom-offer-card.has-badge .loom-offer-price-box {
    margin-top: 22px;
}

.loom-offer-price {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.loom-offer-compare-price {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: line-through; /* Use native line-through for perfect fit */
    font-weight: 400;
    display: inline-block;
}

.loom-cod-btn-main {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.loom-cod-btn-sub {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.out-of-stock-msg {
    color: #d00;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}


.loom-anim-shake-lr {
    animation: loomShakeLR 4s ease-in-out infinite;
}

@keyframes loomShakeLR {

    0%,
    15%,
    30%,
    100% {
        transform: translateX(0);
    }

    5%,
    25% {
        transform: translateX(-4px);
    }

    10%,
    20% {
        transform: translateX(4px);
    }
}

.loom-anim-shake {
    animation: loomShakeLR 4s ease-in-out infinite;
}

.loom-anim-slide {
    animation: loomSlide 4s ease-in-out infinite;
}

@keyframes loomSlide {

    0%,
    15%,
    30%,
    100% {
        transform: translateX(0);
    }

    5% {
        transform: translateX(6px);
    }

    10% {
        transform: translateX(-6px);
    }

    20% {
        transform: translateX(3px);
    }

    25% {
        transform: translateX(-3px);
    }
}

.loom-anim-fanfare {
    animation: loomFanfare 4s ease-in-out infinite;
}

@keyframes loomFanfare {

    0%,
    25%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    5% {
        transform: scale(1.05) rotate(-3deg);
    }

    10% {
        transform: scale(1.05) rotate(3deg);
    }

    15% {
        transform: scale(1.05) rotate(-3deg);
    }

    20% {
        transform: scale(1) rotate(0deg);
    }
}

.loom-anim-shake-ud {
    animation: loomShakeUD 4s ease-in-out infinite;
}

@keyframes loomShakeUD {

    0%,
    15%,
    30%,
    100% {
        transform: translateY(0);
    }

    5%,
    25% {
        transform: translateY(-4px);
    }

    10%,
    20% {
        transform: translateY(4px);
    }
}

.loom-anim-shake-bottom {
    animation: loomShakeBottom 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes loomShakeBottom {

    0%,
    15%,
    30%,
    100% {
        transform: rotate(0deg);
    }

    5%,
    25% {
        transform: rotate(-2deg);
    }

    10%,
    20% {
        transform: rotate(2deg);
    }
}

.loom-anim-pulse {
    animation: loomPulse 4s ease-in-out infinite;
}

@keyframes loomPulse {

    0%,
    20%,
    40%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.04);
    }
}

.loom-anim-bounce {
    animation: loomBounce 4s ease-in-out infinite;
}

@keyframes loomBounce {

    0%,
    15%,
    30%,
    100% {
        transform: translateY(0);
    }

    5% {
        transform: translateY(-6px);
    }

    10% {
        transform: translateY(2px);
    }

    20% {
        transform: translateY(-4px);
    }

    25% {
        transform: translateY(1px);
    }
}

.loom-anim-glow {
    animation: loomGlow 4s ease-in-out infinite;
}

@keyframes loomGlow {

    0%,
    30%,
    100% {
        box-shadow: 0 0 0 0 rgba(var(--brand-primary-rgb, 230, 46, 46), 0);
    }

    5% {
        box-shadow: 0 0 12px 4px rgba(var(--brand-primary-rgb, 230, 46, 46), 0.45);
    }

    15% {
        box-shadow: 0 0 6px 2px rgba(var(--brand-primary-rgb, 230, 46, 46), 0.2);
    }

    20% {
        box-shadow: 0 0 14px 5px rgba(var(--brand-primary-rgb, 230, 46, 46), 0.5);
    }
}

.loom-anim-jello {
    animation: loomJello 4s ease-in-out infinite;
}

@keyframes loomJello {

    0%,
    20%,
    100% {
        transform: skewX(0deg) skewY(0deg);
    }

    3% {
        transform: skewX(-4deg) skewY(-1deg);
    }

    6% {
        transform: skewX(3deg) skewY(1deg);
    }

    9% {
        transform: skewX(-2deg) skewY(-0.5deg);
    }

    12% {
        transform: skewX(1.5deg) skewY(0.3deg);
    }

    15% {
        transform: skewX(-0.5deg) skewY(-0.1deg);
    }
}


.loom-open-cod-modal {
    width: 100%;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.3s, filter 0.3s;
    margin-bottom: 20px;
    line-height: 1;
    background: var(--brand-primary);
    color: #ffffff;
}

.loom-open-cod-modal:hover {
    background: var(--brand-deep);
}

.loom-open-cod-modal svg {
    flex-shrink: 0;
}


@media (max-width: 480px) {
    .loom-cod-modal-content {
        width: 96%;
        border-radius: 10px;
    }

    .loom-cod-body {
        padding: 15px 15px 25px;
    }
}


.loom-cod-body-loading {
    position: relative;
    min-height: 300px;
    pointer-events: none;
}

.loom-cod-body-loading::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loomShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.loom-cod-body-loading::after {
    content: '';
    position: absolute;
    top: 100px;
    left: 20px;
    right: 20px;
    bottom: 60px;
    background:
        linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) 0 0 / 200% 100%,
        linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) 0 80px / 200% 100%,
        linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) 0 160px / 200% 100%;
    background-repeat: no-repeat;
    background-size: 100% 50px;
    border-radius: 8px;
    animation: loomShimmer 1.5s ease-in-out infinite;
}

.loom-cod-body-loading>* {
    opacity: 0 !important;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.loom-cod-body:not(.loom-cod-body-loading)>* {
    opacity: 1 !important;
    transform: translateY(0);
    pointer-events: all;
}

@keyframes loomShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.loom-field-error input {
    border-color: #ff4d4d !important;
    background-color: #fff9f9 !important;
}

.loom-field-error .loom-icon {
    border-color: #ff4d4d !important;
    background-color: #ffeaea !important;
}

.loom-cod-variations.loom-field-error {
    border: 1px solid #ff4d4d;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff9f9;
}

.loom-cod-error {
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
    background: #ffeaea;
    border: 1px solid #ffdada;
}

.loom-field-error-msg {
    color: #ff4d4d;
    font-size: 11px;
    font-weight: 600;
    margin-top: -6px;
    margin-bottom: 10px;
    display: block;
    text-align: start;
}


.loom-cod-shipping-options {
    margin-bottom: 20px;
}

.loom-shipping-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-align: start;
}

.loom-shipping-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    gap: 12px;
}

.loom-shipping-radio {
    flex-shrink: 0;
}

.loom-shipping-info {
    flex: 1;
    text-align: start;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.loom-shipping-price {
    font-size: 15px;
    font-weight: 800;
    color: #000;
}

.loom-radio-outer {
    width: 22px;
    height: 22px;
    border: 1px solid #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loom-radio-inner {
    width: 13px;
    height: 13px;
    background: #000;
    border-radius: 50%;
}


.loom-cod-qty-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f9f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.loom-cod-qty-selector label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.loom-qty-controls {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.loom-qty-btn {
    width: 28px;
    height: 28px;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    transition: 0.2s;
    padding: 0;
}

.loom-qty-btn:hover {
    background: #eee;
}

.loom-qty-controls input {
    width: 34px;
    height: 28px;
    border: none;
    border-inline-start: 1px solid #ddd;
    border-inline-end: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

.loom-shipping-item-label {
    flex: 1;
    text-align: end;
    padding-inline-end: 12px;
}



.loom-qty-controls input::-webkit-outer-spin-button,
.loom-qty-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}


.loom-thankyou-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    font-family: inherit;
    color: #333;
}

.loom-thankyou-header {
    text-align: center;
    margin-bottom: 40px;
}

.loom-success-icon {
    color: #4CAF50;
    margin-bottom: 20px;
    display: inline-block;
    background: #e8f5e9;
    padding: 20px;
    border-radius: 50%;
}

.loom-thankyou-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.loom-thankyou-header p {
    color: #666;
    font-size: 18px;
}

.loom-thankyou-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .loom-thankyou-grid {
        grid-template-columns: 1fr;
    }
}

.loom-thankyou-section {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.loom-thankyou-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.loom-customer-info {
    list-style: none;
    padding: 0;
}

.loom-customer-info li {
    margin-bottom: 15px;
    font-size: 16px;
}

.loom-customer-info li strong {
    color: #666;
    display: block;
    font-size: 14px;
    text-transform: uppercase;
}

.loom-thankyou-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.loom-item-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.loom-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.loom-item-qty {
    position: absolute;
    top: -8px;
    inset-inline-end: -8px;
    background: #333;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.loom-item-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loom-item-name {
    font-weight: 600;
}

.loom-thankyou-totals {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.loom-total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}


.loom-thankyou-footer {
    text-align: center;
    margin-top: 40px;
}

.loom-btn-back {
    display: inline-block;
    padding: 15px 35px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s;
}

.loom-btn-back:hover {
    transform: translateY(-2px);
    color: #fff;
}


.loom-qty-offers-wrap {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loom-offer-card {
    position: relative;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden;
}

.loom-offer-card:hover {
    border-color: var(--brand-primary);
}

.loom-offer-card.selected {
    border-color: var(--brand-primary);
    background: var(--brand-soft, rgba(var(--brand-primary-rgb), 0.05));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.loom-offer-badge {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    background: var(--brand-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-bottom-left-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}



.loom-offer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 5px;
}

.loom-offer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loom-offer-left img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    background: #f8fafc;
}

.loom-offer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.loom-offer-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.loom-offer-subtitle {
    font-size: 11px;
    color: #64748b;
}

.loom-offer-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-primary);
}

.loom-offer-variations {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #eee;
}

.loom-offer-variation-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    background: transparent;
    padding: 0;
    border: none;
}

.loom-offer-variation-row:last-child {
    margin-bottom: 0;
}

.loom-item-num {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    min-width: 25px;
}

.loom-attr-field {
    flex: 1;
}

.loom-attr-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.loom-attr-field select {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    cursor: pointer;
}


.modal-has-offers .loom-cod-qty-selector,
.modal-has-offers .loom-cod-cart-summary {
    display: none !important;
}

.loom-product-offers-preview-wrapper {
    margin-bottom: 20px;
    width: 100%;
}

.loom-product-offers-preview-wrapper .loom-qty-offers-wrap {
    padding: 0;
}


.loom-product-offers-preview-wrapper .loom-offer-card {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.loom-product-offers-preview-wrapper .loom-offer-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
}

.loom-product-offers-preview-wrapper .loom-offer-card.selected .loom-offer-variations {
    display: block !important;
}

.loom-shipping-city-list label:last-child {
    border-bottom: none !important;
}
/* --- Fix iOS Mobile Zoom --- */
@media screen and (max-width: 768px) {
    #loom-cod-modal .loom-cod-modal-content input,
    #loom-cod-modal .loom-cod-modal-content select,
    #loom-cod-modal .loom-cod-modal-content textarea {
        font-size: 16px !important;
    }
}

/* --- Professional Empty State & Loading --- */
.loom-cod-empty-cart-msg {
    text-align: center;
    padding: 60px 20px;
    background: #fdfdfd;
    border-radius: 8px;
    border: 1px dashed #ddd;
    margin: 10px 0;
}

.loom-cod-empty-cart-msg p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.loom-cod-body-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.loom-cod-body-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #eee;
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
    z-index: 100;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

@keyframes loomFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loom-cod-product-summary {
    animation: loomFadeIn 0.3s ease-out forwards;
}
