.checkout {
    width: 100%;
    grid-area: checkout;
}

.order-info {
    grid-area: orderInfo;
}

.cart-box {
    display: flex;
}

.content {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px dashed #ccc;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px; 
}

.details {
    font-weight: 600;
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.alert-primary {
    background: #eff6ff;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}


/* Layouting */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'checkout orderInfo';
    gap: 50px;
}

@media only screen and (max-width: 1150px) {
    .checkout-container {
        grid-template-areas: 'checkout checkout'
                             'orderInfo orderInfo';
                             align-items: start;
        gap: 0px;
    }
}

/* Billing Form */
.content form .full-input-box {
    display: block;
}

form .user-details .input-box {
    width: 100%;
}

/* Order Info */
.order-list {
    background: var(--topback);
    padding: 25px;
    border-radius: 10px;
    border: 2px dashed #ccc;
}

@media only screen and (max-width: 550px) {
    .order-list {
        padding: 15px
    }
}


.order-titles,
.subtotal,
.shipping,
.total-product-price {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
}

.order-titles h5 {
    font-weight: 700;
}

/* ============================================
   MODERN ORDER ITEMS SECTION - UPDATED
   ============================================ */

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
}

/* Main Container: 2 Columns (Left: Product Info | Right: Actions) */
.order-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s ease;
}

.order-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db !important;
}

/* LEFT COLUMN - Product Information */
.order-product-info {
    display: flex;
    min-width: 0;
}

/* Left Column has 2 sub-columns: Image | Details */
.order-item .cart-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.order-item .cart-box img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #e2e2e2;
    flex-shrink: 0;
}

/* Product Details Column */
.order-item .cart-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.order-item .cart-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Size & Color Row (2 columns) */
.order-item .cart-details .size-color-row {
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
    margin-top: 2px;
}

.order-item .cart-details .size-color-row > div {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.order-item .cart-details .size-color-row > div span:first-child {
    font-weight: 500;
    color: #4b5563;
}

/* Unit Price Row */
.order-item .cart-details .unit-price {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2px;
}

/* RIGHT COLUMN - Actions Container */
.order-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 130px;
    justify-content: end;
    align-items: flex-end;
}

/* Row 1: Quantity Controls */
.order-item .cart-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f9fafb;
    border: 3px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px 10px;
}

.order-item .cart-quantity button {
    width: 26px;
    height: 26px;
    border: none;
    /* background: #ffffff; */
    color: #374151;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.order-item .cart-quantity button:hover {
    background: #f3f4f6;
    color: #000000;
}

.order-item .cart-quantity button:active {
    transform: scale(0.92);
}

.order-item .cart-quantity .number {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

/* Row 2: Total Price & Remove Button (2 columns) */
.order-item-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.order-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

.order-item .cart-remove {
    color: #ef4444;
    font-size: 19px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
}

.order-item .cart-remove:hover {
    background: #fef2f2;
    color: #dc2626;
    transform: scale(1.08);
}

/* TABLET RESPONSIVE (768px - 1024px) */
@media only screen and (max-width: 1024px) {
    .order-item-actions {
        min-width: 120px;
    }

    .order-item .cart-quantity {
        gap: 6px;
        padding: 4px 8px;
    }

    .order-product-price {
        font-size: 15px;
    }
}

/* MOBILE RESPONSIVE */
@media only screen and (max-width: 768px) {
    .order-items {
        gap: 10px;
    }

    .order-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .order-item .cart-box {
        gap: 8px;
    }

    .order-item .cart-box img {
        width: 65px;
        height: 65px;
    }

    /* Right column becomes 2 columns on mobile */
    .order-item-actions {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
        min-width: auto;
    }

    /* Quantity stays in left column */
    .order-item .cart-quantity {
        grid-column: 1;
        width: fit-content;
    }

    /* Bottom row (price + remove) goes to right column */
    .order-item-bottom {
        grid-column: 2;
        display: flex;
        gap: 12px;
        justify-content: end;
    }

    .order-product-price {
        font-size: 15px;
    }

    .order-item .cart-remove {
        padding: 5px;
    }
}

@media only screen and (max-width: 480px) {
    .order-items {
        gap: 8px;
        margin: 10px 0;
    }

    .order-item {
        padding: 10px;
        gap: 8px;
    }

    .order-item .cart-box {
        gap: 8px;
    }

    .order-item .cart-box img {
        width: 60px;
        height: 60px;
        border-radius: 6px;
    }

    .order-item .cart-product-title {
        font-size: 13px;
    }

    .order-item .cart-details {
        gap: 4px;
    }

    .order-item .cart-details .size-color-row {
        gap: 3px;
        grid-template-columns: auto auto;
    }

    .order-item .cart-details .size-color-row > div {
        font-size: 11px;
        gap: 3px;
    }

    .order-item .cart-details .unit-price {
        font-size: 14px;
        margin-top: auto;
    }

    .order-item-actions {
        gap: 8px;
    }

    .order-item .cart-quantity {
        padding: 3px 8px;
        gap: 6px;
    }

    .order-item .cart-quantity button {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .order-item .cart-quantity .number {
        font-size: 13px;
        min-width: 24px;
    }

    .order-product-price {
        font-size: 14px;
    }

    .order-item .cart-remove {
        font-size: 17px !important;
        padding: 4px;
    }
}

/* EXTRA SMALL DEVICES */
@media only screen and (max-width: 360px) {
    .order-item .cart-box img {
        width: 55px;
        height: 55px;
    }

    .order-item .cart-product-title {
        font-size: 12px;
    }

    .order-item .cart-details .size-color-row > div {
        font-size: 10px;
    }

    .order-item .cart-details .unit-price {
        font-size: 13px;
    }

    .order-item .cart-quantity {
        padding: 3px 6px;
        gap: 4px;
    }

    .order-item .cart-quantity button {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }

    .order-item .cart-quantity .number {
        font-size: 12px;
        min-width: 20px;
    }

    .order-product-price {
        font-size: 13px;
    }
}

/* ============================================
   END OF MODERN ORDER ITEMS SECTION
   ============================================ */

/* Payment Info */
.payment-info .selection-box {
    background: var(--topback);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px dashed #ccc;
}
.payment-info .selection-box input {
    cursor: pointer;
}

.selection-box label {
    font-size: 18px;
    margin-left: 15px;
}

.selection-box .input-box label {
    margin-left: 0;
}

.selection-box .input-box input {
    margin-top: 10px;
    padding: 15px;
}

.selection-box p {
    font-size: 18px;
    font-weight: 600;
}

.input-box label {
    font-size: 16px;
}

.payment-instructions p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.amount {
    font-weight: 600;
    font-size: 16px;
}

@media only screen and (max-width: 450px) {
    .selection-box p {
        font-size: 16px;
    }
}

/* Next */
.custom-input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

.custom-input:focus,
textarea:focus {
    border: 1px solid #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Default (unfocused) state is already defined by the base rule above */



/* ============================================
   BLOCKED CUSTOMER WARNING OVERLAY
   ============================================ */

.blocked-warning-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    animation: bw-fadeIn 0.3s ease;
}

@keyframes bw-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bw-slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bw-iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.blocked-warning-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: bw-slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blocked-warning-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 20px;
}

.blocked-warning-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: scale(1.08);
}

.blocked-warning-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bw-iconPulse 2s ease-in-out infinite;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.blocked-warning-icon svg {
    width: 38px;
    height: 38px;
    color: #d97706;
}

.blocked-warning-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.blocked-warning-message {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px;
}

.blocked-warning-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 0 0 24px;
}

.blocked-warning-subtext {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 24px;
    line-height: 1.5;
}

.blocked-warning-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.blocked-warning-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    color: #ffffff;
}

.blocked-warning-whatsapp-btn:active {
    transform: translateY(0);
}

.blocked-warning-whatsapp-btn i {
    font-size: 22px;
}

/* Responsive */
@media only screen and (max-width: 480px) {
    .blocked-warning-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .blocked-warning-icon {
        width: 68px;
        height: 68px;
    }

    .blocked-warning-icon svg {
        width: 32px;
        height: 32px;
    }

    .blocked-warning-title {
        font-size: 20px;
    }

    .blocked-warning-message {
        font-size: 14px;
    }

    .blocked-warning-whatsapp-btn {
        padding: 12px 28px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
}