.washlist-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;

}

.washlist-container .right {
    flex: 1 1 620px;
    min-width: 280px;
}

.washlist-container .left {
    flex: 0 1 320px;
    min-width: 240px;
}

.washlist-container table {
    width: 100%;
    border-collapse: collapse;
}

.washlist-container th,
.washlist-container td {
    padding: 8px;
    border-bottom: 1px solid #e6e6e6;
    text-align: center;
}

.washlist-container td button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.washlist-container img {
    display: block;
    border-radius: 6px;
    object-fit: cover;
}

.washlist-container td .quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    width: fit-content;
}

.washlist-container td .quantity-selector button {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.washlist-container td .quantity-selector input {
    width: 40px;
    text-align: center;
    border: none;
}

.washlist-container .checkout {
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fafafa;
    position: sticky;
    top: 12px;
}

.washlist-container .checkout-button {
    display: inline-block;
    width: 100%;
    margin-top: 12px;
    padding: 8px 14px;
    text-decoration: none;
    border: 1px solid var(--border);
    background-color: var(--secondary);
    color: white;
    text-align: center;
}


/* ------------------------------------------ Checkout Design ------------------------------------------ */

.checkout-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding: 32px 24px 48px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

.checkout-container .left .checkout-form .login-link {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.checkout-form .auth-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 18px;
    color: #6b7280;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.checkout-form .auth-separator::before,
.checkout-form .auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e1e4ea;
}

.checkout-container .left,
.checkout-container .right {
    min-width: 0;
}

.checkout-form {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(22, 29, 37, 0.08);
}

.checkout-form .form-group {
    margin-bottom: 16px;
}

.checkout-form label {
    display: flex;
    flex-direction: row;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    color: #1b1f2a;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e1e4ea;
    background: #fbfbfd;
    color: #1b1f2a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.payment-options {
    display: grid;
    gap: 12px;
}

.payment-option {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e1e4ea;
    background: #fbfbfd;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.payment-option:hover {
    border-color: #c7d2de;
    background: #fff;
}

.payment-option input {
    width: 18px;
    height: 18px;
    accent-color: #3b8f73;
}

.payment-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #f0f4f5;
    color: #3b8f73;
}

.payment-icon svg {
    width: 20px;
    height: 20px;
}

.payment-label {
    display: grid;
    gap: 2px;
}

.payment-title {
    font-weight: 600;
    color: #1b1f2a;
}

.payment-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

.checkout-form input[readonly] {
    background: #f3f4f7;
    color: #4b5563;
}

.checkout-form .form-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.card-fields {
    margin-top: 6px;
    padding: 16px;
    border-radius: 14px;
    border: 1px dashed #d2d7e1;
    background: linear-gradient(120deg, #f8fbff, #f6f6fb 55%, #fbf7f1);
}

.checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, #6dbb9c, #3b8f73);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(59, 143, 115, 0.25);
}

.checkout {
    position: sticky;
    top: 16px;
}

.checkout-summary {
    background: var(--bg);
    color: var(--text);
    border-radius: 3px;
    padding: 15px;
    border: 1px solid var(--border);
}

.checkout-summary .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.checkout-summary .header h2 {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.checkout-summary .header a {
    color: var(--secondary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.checkout-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.checkout-summary li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    color: var(--text);
}

#checkout-total {
    margin-top: 18px;
    padding: 10px;
    color: var(--text);
    text-align: center;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
}

#checkout-total h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary);
}

@media (max-width: 1100px) {
    .checkout-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout {
        position: static;
    }
}

@media (max-width: 700px) {
    .checkout-container {
        padding: 24px 16px 36px;
        gap: 20px;
    }

    .checkout-form {
        padding: 22px;
    }

    .checkout-form .form-groups {
        grid-template-columns: minmax(0, 1fr);
    }
}


@media (max-width: 900px) {
    .washlist-container {
        padding: 16px;
    }

    .washlist-container .left,
    .washlist-container .right {
        flex: 1 1 100%;
    }

    .washlist-container .checkout {
        width: 100%;
        box-sizing: border-box;
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .washlist-container table,
    .washlist-container thead,
    .washlist-container tbody,
    .washlist-container th,
    .washlist-container td,
    .washlist-container tr {
        display: block;
        width: 100%;
    }

    .washlist-container th {
        display: none;
    }

    .washlist-container tr {
        padding: 12px 0;
        border-bottom: 1px solid #e6e6e6;
    }

    .washlist-container td {
        padding: 6px 0;
        border: none;
    }
}

