/* Checkout Pages Shared Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: white;
    min-height: 100vh;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #C6EEE6;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.logo span {
    font-weight: 400;
}

.settings-icon {
    display: none;
}

.content {
    max-width: 800px;
    margin: 120px auto 0;
    padding: 0 40px 140px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    padding-bottom: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

/* Order Summary */
.order-summary {
    padding: 14px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.order-summary h2 {
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 8px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item-name {
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
}

.order-item-price {
    font-size: 24px;
    font-weight: 700;
    color: #3dd9c0;
}

.order-item-price.free {
    color: #10b981;
}

.delivery-note {
    font-size: 13px;
    color: #888;
}

/* Form Styles */
.checkout-form {
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.form-group select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s ease;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group select:focus {
    outline: none;
    border-color: #3dd9c0;
}

.form-group select:invalid,
.form-group select option[value=""][disabled] {
    color: #999;
}

.form-group select option {
    color: #1a1a1a;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-size: 13px;
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3dd9c0;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #888;
}

.privacy-note .material-icons {
    font-size: 16px;
    color: #aaa;
}

.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.terms-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.terms-group label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    line-height: 18px;
}

.terms-group a {
    color: #3dd9c0;
    text-decoration: underline;
}

/* Submit Row */
.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.submit-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.submit-button {
    padding: 11px 28px;
    font-size: 19px;
    font-weight: 400;
    font-family: inherit;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 45px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-link {
    font-size: 14px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cancel-link:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.submit-button:hover {
    background: #3dd9c0;
    transform: translateY(-1px);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
}

.secure-note .material-icons {
    font-size: 16px;
}

/* Error/Success Messages */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 14px;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Thank You Page Styles */
.success-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #3dd9c0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.success-icon .material-icons {
    font-size: 40px;
    color: white;
}

.success-text h1 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 17px;
    color: #666;
    margin: 0;
}

.info-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    text-align: left;
}

.info-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h2 .material-icons {
    color: #3dd9c0;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #3dd9c0;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #3dd9c0;
}

.timeline-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.email-note {
    background: #e8faf6;
    border: 1px solid #b3ede3;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.email-note .material-icons {
    color: #2bb8a3;
    font-size: 20px;
    margin-top: 2px;
}

.email-note p {
    font-size: 14px;
    color: #1a8a78;
    margin: 0;
}

.email-note strong {
    display: block;
    margin-bottom: 4px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.back-button .material-icons {
    font-size: 18px;
}

/* Embedded Checkout */
.checkout-container {
    margin-top: 24px;
}

.checkout-header {
    margin-bottom: 20px;
}

.back-to-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #666;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-to-form:hover {
    color: #1a1a1a;
    border-color: #bbb;
    background: #f9f9f9;
}

.back-to-form .material-icons {
    font-size: 18px;
}

#embeddedCheckout {
    min-height: 400px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .content {
        margin-top: 100px;
        padding: 0 20px 100px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    h1 {
        font-size: 26px;
    }

    .submit-row {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .info-card {
        padding: 20px;
    }
}
