/* Main Design System */
:root {
    --paypal-blue: #003087;
    --paypal-light-blue: #0070ba;
    --paypal-gold: #ffc439;
    --text-color: #2c2e2f;
    --secondary-text: #545d68;
    --border-color: #d1d1d1;
    --background-gray: #f5f7fa;
}

.hidden {
    display: none !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "PayPal Sans Big", "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: var(--text-color);
    line-height: 1.4;
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-amount {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 14px;
    color: var(--paypal-light-blue);
}

/* Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
}

/* Product Section */
.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    width: 100%;
}

.product-image {
    max-width: 300px;
    height: auto;
}

.product-details h1 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-price {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 12px;
}

.product-details p {
    color: var(--secondary-text);
    font-size: 15px;
}

/* Payment Section */
.summary-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 24px;
}

.summary-header h2 {
    font-size: 20px;
    margin-bottom: 24px;
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f2f2f2;
}

.express-label {
    text-align: center;
    color: var(--secondary-text);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Buttons */
.paypal-button,
.card-button {
    width: 100%;
    height: 48px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.paypal-button {
    background-color: #ffc439;
}

.paypal-button:hover {
    background-color: #f2ba36;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.paypal-button:active {
    transform: scale(0.98);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0 24px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #d1d1d1;
}

.divider-text {
    margin: 0 12px;
    font-size: 15px;
    color: #545d68;
    background: #fff;
    padding: 0 4px;
}

.card-button {
    background-color: #2c2e2f;
    color: #ffffff;
    gap: 12px;
}

.card-button:hover {
    background-color: #3d3f41;
}

/* Card Form */
.card-form-container {
    margin-top: 20px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 4px;
}

.input-group {
    margin-bottom: 15px;
}

.input-row {
    display: flex;
    gap: 15px;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: var(--paypal-light-blue);
    box-shadow: 0 0 0 1px var(--paypal-light-blue);
}

.billing-header {
    font-weight: bold;
    margin: 20px 0 15px;
    font-size: 16px;
}

.pay-btn {
    width: 100%;
    height: 48px;
    background: var(--paypal-light-blue);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.pay-btn:hover {
    background: #005ea6;
}

/* Footer Section */
.merchant-footer {
    font-size: 13px;
    color: var(--secondary-text);
    line-height: 1.6;
}

.footer-disclaimer {
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--paypal-light-blue);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.link-separator {
    margin: 0 10px;
    color: #d1d1d1;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #545d68;
}

/* Auth Simulation Styles */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.close-auth {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.auth-helper-text {
    max-width: 400px;
    padding: 20px;
}

.auth-logo-white {
    filter: brightness(0) invert(1);
    margin-bottom: 24px;
}

.auth-helper-text p {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.auth-helper-text a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
    font-size: 16px;
    display: inline-block;
    margin-top: 16px;
}

/* Auth Modal ("Second Window") */
.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    min-height: 580px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-loading {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

.spinner-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0070ba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spin 0.6s linear infinite;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error States */
.error-border {
    border-color: #d93939 !important;
    box-shadow: 0 0 0 1px #d93939 !important;
}

.error-message {
    color: #d93939;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.error-border+.error-message {
    display: block;
}

/* Auth Login Form */
.auth-login {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-content h3 {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    color: #003087;
    margin-bottom: 30px;
    line-height: 1.4;
}

.login-input-group {
    margin-bottom: 16px;
}

.login-input-group input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-size: 16px;
}

.forgot-link {
    color: #0070ba;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: block;
    margin-bottom: 24px;
}

.login-btn {
    width: 100%;
    height: 48px;
    background-color: #003087;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 24px;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #d1d1d1;
}

.login-divider span {
    position: relative;
    background-color: #fff;
    padding: 0 10px;
    color: #545d68;
    font-size: 14px;
}

.pay-with-card-secondary {
    width: 100%;
    height: 48px;
    background-color: #fff;
    color: #2c2e2f;
    border: 1px solid #2c2e2f;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.login-footer {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.language-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #545d68;
}

.current-lang {
    font-weight: bold;
    color: #2c2e2f;
}

.other-lang {
    margin-left: 8px;
    cursor: pointer;
}

.other-lang:hover {
    text-decoration: underline;
}

/* Guest Checkout Styles */
.auth-guest {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #ffffff;
}

.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fcfcfc;
    border-bottom: 1px solid #eeeeee;
}

.order-total {
    font-weight: 500;
    color: #0070ba;
    font-size: 16px;
}

.guest-content {
    padding: 30px;
    background-color: #fff;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.payment-tabs {
    display: flex;
    background-color: #f0f2f5;
    padding: 4px;
    border-radius: 24px;
    margin-bottom: 30px;
}

.tab {
    flex: 1;
    height: 40px;
    border: none;
    background: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: #545d68;
}

.tab.active {
    background-color: #fff;
    color: #003087;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.guest-title {
    font-size: 24px;
    color: #001c64;
    margin-bottom: 12px;
    font-weight: 400;
}

.guest-subtitle {
    font-size: 15px;
    color: #2c2e2f;
    margin-bottom: 25px;
}

.guest-input-group {
    position: relative;
    margin-bottom: 15px;
    border: 1px solid #8d949e;
    border-radius: 4px;
    padding: 8px 12px;
    transition: border-color 0.2s;
}

.guest-input-group label {
    display: block;
    font-size: 11px;
    color: #545d68;
    margin-bottom: 2px;
    text-transform: none;
}

.guest-input-group input,
.guest-input-group select {
    width: 100%;
    border: none;
    font-size: 16px;
    background: none;
    outline: none;
    color: #2c2e2f;
}

.guest-input-group.focused {
    border-color: #0070ba;
    box-shadow: 0 0 0 1px #0070ba;
}

.info-alert {
    background-color: #fff;
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #2c2e2f;
}

.info-alert a {
    color: #0070ba;
    font-weight: 500;
    text-decoration: none;
}

.info-alert a:hover {
    text-decoration: underline;
}

.row {
    display: flex;
    gap: 15px;
}

.half-width {
    flex: 1;
}

.card-logos-row {
    margin: 10px 0 20px;
    padding: 10px;
    background-color: #f7f9fa;
    border-radius: 4px;
    text-align: left;
}

.section-title {
    font-size: 20px;
    color: #001c64;
    margin: 30px 0 20px;
    font-weight: 400;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
    font-size: 15px;
}

.checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.benefits-info {
    background-color: #f5f7fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.6;
    color: #545d68;
}

.legal-disclaimer {
    font-size: 13px;
    color: #545d68;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

.continue-btn {
    width: 100%;
    height: 52px;
    background-color: #003087;
    color: #fff;
    border: none;
    border-radius: 26px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: background-color 0.2s;
}

.continue-btn:hover {
    background-color: #001c64;
}

.login-prompt {
    text-align: center;
    font-size: 15px;
    margin-bottom: 40px;
}

.login-prompt a {
    color: #0070ba;
    font-weight: 500;
    text-decoration: none;
}

.guest-footer {
    padding: 40px 20px;
    background-color: #f7f9fa;
    text-align: center;
    border-top: 1px solid #eeeeee;
}

.footer-languages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.lang-link {
    color: #0070ba;
    font-size: 14px;
    cursor: pointer;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: #545d68;
}

.footer-bottom-links a {
    color: #545d68;
    text-decoration: none;
}

.copyright {
    margin-top: 15px;
    display: block;
    width: 100%;
    color: #8d949e;
}

@media (max-width: 850px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-container {
        padding: 30px 15px;
    }
}

/* Phone Verification Flow (p10/p11) */
.pp-logo-center {
    display: block;
    margin: 0 auto;
}

.auth-security-check,
.auth-phone-code {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.check-header {
    padding: 40px 0 20px;
}

.check-content {
    padding: 0 40px 40px;
    text-align: center;
    flex: 1;
}

.check-content h2 {
    font-size: 32px;
    font-weight: 500;
    color: #2c2e2f;
    margin-bottom: 20px;
}

.check-content p {
    font-size: 16px;
    color: #2c2e2f;
    margin-bottom: 30px;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
    cursor: pointer;
}

.option-card.active {
    border-color: #0070ba;
    box-shadow: 0 0 0 1px #0070ba;
}

.option-icon {
    margin-right: 15px;
    color: #2c2e2f;
    display: flex;
    align-items: center;
}

.option-details {
    flex: 1;
}

.option-details strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

.option-details p {
    margin-bottom: 0 !important;
    font-size: 14px;
    color: #545d68;
}

.option-radio {
    margin-left: 15px;
}

.radio-outer {
    width: 24px;
    height: 24px;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radio-inner {
    width: 12px;
    height: 12px;
    background-color: #000;
    border-radius: 50%;
}

.pp-main-btn {
    width: 100%;
    height: 52px;
    background-color: #0070ba;
    color: #ffffff;
    border: none;
    border-radius: 26px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.2s;
}

.pp-main-btn:hover {
    background-color: #005ea6;
}

.pp-secondary-btn {
    width: 100%;
    height: 52px;
    background-color: #ffffff;
    color: #0070ba;
    border: 1px solid #0070ba;
    border-radius: 26px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 25px;
}

.pp-return-link {
    color: #0070ba;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.pp-return-link:hover {
    text-decoration: underline;
}

.return-link-container {
    margin-top: 15px;
}

.check-footer {
    border-top: 1px solid #f0f0f0;
}

.lang-selector-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #fff;
    font-size: 14px;
    color: #545d68;
}

.lang-selector-simple img {
    margin-right: 5px;
}

.lang-selector-simple span {
    cursor: pointer;
}

.lang-selector-simple .active-lang {
    font-weight: bold;
    color: #000;
}

/* Code Inputs Area */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.code-box {
    width: 50px;
    height: 65px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background-color: #f5f7fa;
    font-size: 24px;
    text-align: center;
    outline: none;
}

.code-box:focus {
    border-color: #0070ba;
    box-shadow: 0 0 0 1px #0070ba;
    background-color: #fff;
}

.resend-text {
    font-size: 16px;
    margin-bottom: 30px !important;
    color: #2c2e2f;
}

.resend-text a {
    color: #0070ba;
    text-decoration: none;
    font-weight: bold;
}