* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #171717;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.checkout-header {
    border-bottom: 1px solid #e5e5e5;
    background-color: #ffffff;
}

.checkout-header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
}

.shopping-bag-icon {
    width: 24px;
    height: 24px;
    color: #171717;
}

/* Order Summary Mobile */
.order-summary-mobile {
    border-bottom: 1px solid #e5e5e5;
    display: block;
}

.summary-toggle {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: inherit;
}

.summary-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #171717;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    color: #171717;
    transition: transform 0.2s;
}

.chevron-icon.rotated {
    transform: rotate(180deg);
}

.summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #171717;
}

/* Main Content */
.main-content {
    padding: 1.5rem 1rem;
}

.checkout-grid {
    display: grid;
    gap: 2rem;
}

/* Sections */
.section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #171717;
}

.section-subtitle {
    font-size: 0.875rem;
    color: #737373;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 0.875rem;
    color: #737373;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* Google Pay Button */
.google-pay-btn {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.google-pay-btn:hover {
    opacity: 0.9;
}

.google-pay-btn:active {
    opacity: 0.8;
}

/* Divider */
.divider {
    position: relative;
    margin: 1.5rem 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e5e5;
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background-color: #ffffff;
    font-size: 0.875rem;
    color: #737373;
}

/* Login Link */
.login-link {
    font-size: 0.875rem;
    color: #171717;
    text-decoration: underline;
}

.login-link:hover {
    text-decoration: none;
}

/* Form Fields */
.input-field {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #171717;
    background-color: #ffffff;
    margin-bottom: 0.75rem;
}

.input-field:focus {
    outline: none;
    border-color: #171717;
    box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.1);
}

.input-field::placeholder {
    color: #a3a3a3;
}

.input-field-borderless {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    font-size: 0.875rem;
    font-family: inherit;
    color: #171717;
    background-color: transparent;
}

.input-field-borderless:focus {
    outline: none;
}

.input-field-borderless::placeholder {
    color: #a3a3a3;
}

.input-with-icon {
    position: relative;
    margin-bottom: 0.75rem;
}

.input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #737373;
}

/* Payment Card */
.payment-card {
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    overflow: hidden;
}

.payment-header {
    background-color: rgba(245, 245, 245, 0.5);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d4d4d4;
}

.payment-method {
    font-size: 0.875rem;
    font-weight: 500;
    color: #171717;
}

.card-icons {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.card-icon {
    height: 20px;
    border-radius: 2px;
}

.more-cards {
    font-size: 0.75rem;
    color: #737373;
}

.payment-body {
    padding: 0.75rem;
}

.payment-field-row {
    border-top: 1px solid #d4d4d4;
    padding: 0.75rem;
    margin: 0 -0.75rem;
}

.payment-field-row:first-child {
    border-top: none;
    padding-top: 0;
}

.payment-field-row:last-child {
    padding-bottom: 0;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-field {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    color: #737373;
    margin-bottom: 0.375rem;
}

/* Order Total Section */
.desktop-total-header {
    display: none;
}

.order-total-section {
    margin-top: 1rem;
}

.product-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 1rem;
}

.product-image-wrapper {
    position: relative;
}

.product-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.product-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e5e5e5;
    color: #737373;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
}

.product-details {
    flex: 1;
}

.product-info {
    display: flex;
    justify-content: space-between;
}

.product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #171717;
    margin-bottom: 0.25rem;
}

.product-quantity-text {
    font-size: 0.75rem;
    color: #737373;
}

.product-price-wrapper {
    text-align: right;
}

.product-currency {
    font-size: 0.75rem;
    color: #737373;
}

.product-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #171717;
}

/* Pay Now Button */
.pay-now-btn {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: opacity 0.2s;
}

.pay-now-btn:hover {
    opacity: 0.9;
}

.pay-now-btn:active {
    opacity: 0.8;
}

/* Privacy Link */
.privacy-link-wrapper {
    padding-top: 0.5rem;
    text-align: center;
}

.privacy-link {
    font-size: 0.75rem;
    color: #171717;
    text-decoration: underline;
}

.privacy-link:hover {
    text-decoration: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 28rem;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success-icon {
    width: 24px;
    height: 24px;
    color: #16a34a;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #171717;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #737373;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #171717;
}

.modal-message {
    font-size: 0.875rem;
    color: #737373;
    margin-bottom: 1.5rem;
}

.modal-btn {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-btn:hover {
    opacity: 0.9;
}

.modal-btn:active {
    opacity: 0.8;
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .order-summary-mobile {
        display: none;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .checkout-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .checkout-right {
        border-left: 1px solid #e5e5e5;
        padding-left: 3rem;
    }

    .desktop-total-header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 1.5rem;
    }

    .desktop-total-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: #737373;
    }

    .desktop-total-price {
        font-size: 1.5rem;
        font-weight: 700;
        color: #171717;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-content {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}
