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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", "Ubuntu", sans-serif;
    background-color: white;
    color: #32325d;
    line-height: 1.4;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 16px 16px 0 16px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0px;
}

.back-button {
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: #f6f9fc;
}

.header-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header-title {
    font-size: 14px;
    font-weight: 400;
    color: #1A1A1AE6;
}

/* Main content layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 920px;
    min-height: 80vh;
    position: relative;
}

/* Vertical divider */
.main-content::after {
    content: '';
    position: absolute;
    left: calc(50% - 0.5px);
    top: 0;
    bottom: 0;
    width: 1px;
    background: #fdfeff;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Left panel - Currency widgets */
.left-panel {
    background-color: #ffffff;
    /* padding: 40px; */
    padding-right: 40px;
}

.currency-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #1A1A1AE6;
}

.currency-options {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.currency-card {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 500;
    min-width: 140px;
    flex: 1;
    color: #374151;
}

.currency-card:hover {
    border-color: #9ca3af;
}

.currency-card.selected {
    border-color: #000000;
    border-width: 1px;
    background-color: white;
    color: #000000;
}

.currency-flag {
    font-size: 12px;
    font-weight: bold;
    width: 28px;
    height: 20px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.currency-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.currency-flag img {
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: 2px;
}

.currency-label {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1ae6;
    line-height: 1;
}

.flag {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.exchange-rate {
    font-size: 12px;
    color: #8898aa;
    margin-bottom: 32px;
}

.merchant-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e6ebf1;
}

.merchant-name {
    font-weight: 500;
    font-size: 14px;
    color: #32325d;
}

.merchant-amount {
    font-weight: 500;
    font-size: 14px;
    color: #32325d;
}

/* Right panel - Payment form */
.right-panel {
    background: white;
    /* border-radius: 12px; */
    /* padding: 32px; */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); */
    padding-left: 40px;

}

.payment-link-btn {
width: 100%;
    background: #00d66f;
    color: black;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 24px;
    transition: background-color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", "Ubuntu", sans-serif;
}

.payment-link-btn:hover {
    background: #00c962;
}

.link-icon {
    background: white;
    color: #00d924;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.LinkButton-logoSvg {
    height: 20px;
    width: auto;
    margin-left: 6px;
}

.divider {
    text-align: center;
    color: #8898aa;
    margin-bottom: 24px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e5e5e5;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Placeholder styles */
::placeholder {
    color: #1A1A1A80;
    font-weight: 400;
    opacity: 1;
}

::-webkit-input-placeholder {
    color: #1A1A1A80;
    font-weight: 400;
}

::-moz-placeholder {
    color: #1A1A1A80;
    font-weight: 400;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #1A1A1A80;
    font-weight: 400;
}

:-moz-placeholder {
    color: #1A1A1A80;
    font-weight: 400;
    opacity: 1;
}

/* Form styles */
.payment-form {
    margin-bottom: 20px;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #32325d;
}

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

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #32325d;
    margin-bottom: 5px;
}

.obligatory-notice {
    font-size: 10px;
    font-weight: 400;
    color: #e11d48;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Email readonly styling */
input[readonly] {
    background-color: #f8f9fa !important;
    cursor: not-allowed !important;
}

/* Floating label for email field */
.email-field .floating-label-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #f8f9fa;
    padding: 10px 16px;
    margin-bottom: 35px;
    min-height: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.email-field .floating-label {
    font-size: 14px;
    color: #32325d;
    font-weight: 400;
    max-width: 70px;
    word-wrap: break-word;
    line-height: 1.2;
    margin-right: 16px;
    flex-shrink: 0;
    hyphens: auto;
    overflow-wrap: break-word;
}

.email-field input {
    border: none;
    background: transparent;
    padding: 0;
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    color: #32325d;
    outline: none;
}

/* Moved to end of file with ZIP field exclusions */

/* Focus state for email field container */
.email-field .floating-label-container:focus-within {
    outline: 1px solid #3b82f6;
    outline-offset: -1px;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Country select styling */

.country-select-wrap {
    position: relative;
}

.country-select-wrap select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.2s;
    background: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
}

.zip-input-wrap {
    border-top: 1px solid #e5e5e5;
}

.zip-input-wrap input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    background: white;
}

.zip-input-wrap input:focus {
    outline: none;
}

.country-zip-container:focus-within {
    outline: 1px solid #3b82f6 !important;
    outline-offset: -1px;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    transition: border-color 0.2s, box-shadow 0.2s, outline 0.2s;
}

/* Additional focus styles for better visibility */
.country-select-wrap select:focus {
    outline: none;
}

.country-zip-container {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: white;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s, box-shadow 0.2s, outline 0.2s;
}

/* Card input container - monolithic block */
.card-input-container {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: white;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Focus states - highlighting specific areas */
.card-input-container.focus-card-number .card-number-row {
    outline: 1px solid #3b82f6;
    outline-offset: -1px;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    z-index: 1;
}

.card-input-container.focus-expiry .expiry-input-wrapper {
    outline: 1px solid #3b82f6;
    outline-offset: -1px;
    border-radius: 0 0 0 6px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    z-index: 1;
}

.card-input-container.focus-cvc .cvc-input-wrapper {
    outline: 1px solid #3b82f6;
    outline-offset: -1px;
    border-radius: 0 0 6px 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    z-index: 1;
}

/* Error states - highlighting specific areas */
.card-input-container.error-card-number .card-number-row {
    outline: 1px solid #e11d48;
    outline-offset: -1px;
    border-radius: 6px 6px 0 0;
    z-index: 1;
}

.card-input-container.error-expiry .expiry-input-wrapper {
    outline: 1px solid #e11d48;
    outline-offset: -1px;
    border-radius: 0 0 0 6px;
    z-index: 1;
}

.card-input-container.error-cvc .cvc-input-wrapper {
    outline: 1px solid #e11d48;
    outline-offset: -1px;
    border-radius: 0 0 6px 0;
    z-index: 1;
}

/* Error state for entire card container when OBLIGATORY is shown */
.card-input-container.error-obligatory {
    border-color: #e11d48;
    border-width: 1px;
}

/* Error state for cardholder name input when OBLIGATORY is shown */
.form-group input.error-obligatory:not(.email-field input):not(.card-number-row input):not(.expiry-input-wrapper input):not(.cvc-input-wrapper input) {
    border-color: #e11d48 !important;
    border-width: 1px;
}

.card-number-row {
    position: relative;
    padding: 0;
}

.card-number-row input {
    border: none !important;
    padding: 10px 140px 10px 16px;
    border-radius: 0;
    width: 100%;
    background: transparent;
    font-size: 14px;
    box-shadow: none;
}

.card-number-row input:focus {
    outline: none;
    box-shadow: none;
}

.card-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e5e5e5;
}

.cvc-input-wrapper {
    border-left: 1px solid #e5e5e5;
}

.expiry-input-wrapper,
.cvc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.expiry-input-wrapper input,
.cvc-input-wrapper input {
    border: none !important;
    padding: 10px 40px 10px 16px;
    border-radius: 0;
    width: 100%;
    background: transparent;
    font-size: 14px;
    box-shadow: none;
}

.expiry-input-wrapper input:focus,
.cvc-input-wrapper input:focus {
    outline: none;
    box-shadow: none;
}

/* Card icons styling */
.card-icons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.card-icon {
    width: 24px;
    height: 20px;
    object-fit: contain;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease;
}

.rotating-icon {
    /* Smooth transitions for icon rotation */
    transition: opacity 0.4s ease-in-out, transform 0.3s ease;
}

.rotating-icon.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

.rotating-icon.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Hover effect for card icons */
.card-icon:hover {
    transform: scale(1.05);
}

/* CVC icon */
.cvc-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    opacity: 0.6;
    width: 24px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvc-icon svg {
    width: 24px;
    height: 20px;
}

/* Error icons */
.card-error-icon,
.expiry-error-icon,
.cvc-error-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

/* Error message */
.card-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    padding-left: 2px;
}

/* Phone input */
.phone-input-group {
    display: flex;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.country-code {
    background: #f6f9fc;
    padding: 12px 16px;
    border-right: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.phone-input-group input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.phone-input-group:focus-within {
    outline: 1px solid #3b82f6;
    outline-offset: -1px;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.phone-input-group input:focus {
    outline: none;
}

/* Checkbox group */
.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #635bff;
    border-color: #635bff;
    color: white;
}

.save-info-text {
    font-size: 12px;
    color: #8898aa;
    margin-top: 8px;
    margin-left: 32px;
}

/* Terms text */
.terms-text {
    font-size: 12px;
    color: #8898aa;
    margin-bottom: 24px;
    line-height: 1.5;
}

.terms-text a {
    color: #635bff;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Pay button */
.pay-button {
    width: 100%;
    background: #635bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-button:hover {
    background: #5a52ff;
}

/* Loading state for pay button */
.pay-button.loading {
    color: transparent;
    pointer-events: none;
}

/* Spinner - белый фон с зеленым бегунком */
.pay-button-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top: 2px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.pay-button.loading .pay-button-spinner {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Footer */
.form-footer {
    text-align: center;
    font-size: 12px;
    color: #8898aa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stripe-logo {
    font-weight: 600;
    color: #635bff;
}

.form-footer a {
    color: #8898aa;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Language selector - removed */

/* Desktop font sizes for inputs */
input, select, textarea {
    font-size: 15px !important;
}

::placeholder,
::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder,
:-moz-placeholder {
    font-size: 15px !important;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Mobile font sizes for inputs */
    input, select, textarea {
        font-size: 16px !important;
    }

    ::placeholder,
    ::-webkit-input-placeholder,
    ::-moz-placeholder,
    :-ms-input-placeholder,
    :-moz-placeholder {
        font-size: 16px !important;
    }

    /* Remove vertical divider line in mobile */
    .main-content::after {
        display: none;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .left-panel {
        padding-right: 10px;
        padding-left: 10px;
        text-align: center; /* Center align content */
        display: flex;
        flex-direction: column;
    }

    /* Move merchant info to top in mobile */
    .merchant-info {
        order: -1; /* Move above currency title */
        justify-content: center;
        text-align: center;
        margin-bottom: 25px;
        margin-top: 25px;
        border-top: none;
        padding: 0;
    }

    /* Shop name in main content - 18px with mobile color */
    .left-panel .merchant-name {
        font-size: 18px !important;
        text-align: center;
        color: #1A1A1A99 !important;
    }

    /* Shop name in panel - keep 14px */
    .mobile-details-panel .merchant-name {
        font-size: 14px !important;
    }

    .merchant-amount {
        display: none; /* Hide amount in mobile */
    }

    /* Currency title centered */
    .currency-title {
        text-align: center;
    }

    /* Currency options in row instead of column */
    .currency-options {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .currency-card {
        min-width: auto;
        flex: 1; /* Expand to fill available width */
        max-width: none; /* Remove width restrictions */
    }

    /* Exchange rate centered */
    .exchange-rate {
        text-align: center;
    }

    .right-panel {
        padding: 10px;
    }

    .card-details {
        grid-template-columns: 1fr;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .country-code {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    /* Mobile Skeleton Layout */
    .skeleton-main-content {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* Remove skeleton divider in mobile */
    .skeleton-main-content::after {
        display: none !important;
    }

    .skeleton-left-panel {
        padding-right: 0 !important;
        text-align: center;
        order: 1;
    }

    .skeleton-right-panel {
        order: 2;
        padding-left: 0 !important;
    }

    /* Hide skeleton left panel elements that don't exist in mobile */
    .skeleton-merchant-info {
        order: -1; /* Move to top like real content */
        margin-bottom: 32px;
    }

    .skeleton-merchant-name {
        width: 180px !important;
        margin: 0 auto;
    }

    .skeleton-merchant-amount {
        display: none !important; /* Hide amount in mobile */
    }

    /* Center skeleton currency elements */
    .skeleton-currency-title {
        margin: 0 auto;
    }

    .skeleton-currency-cards {
        justify-content: center;
        gap: 12px;
    }

    .skeleton-exchange-rate {
        margin: 0 auto;
    }
}

.form-group input:not(.email-field input):not(.card-number-row input):not(.expiry-input-wrapper input):not(.cvc-input-wrapper input):not(.zip-input-wrap input):not(.phone-input-wrapper input),
.form-group select:not(.country-select-wrap select) {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:not(.email-field input):not(.card-number-row input):not(.expiry-input-wrapper input):not(.cvc-input-wrapper input):not(.zip-input-wrap input):not(.phone-input-wrapper input):focus,
.form-group select:not(.country-select-wrap select):focus {
    outline: 1px solid #3b82f6;
    outline-offset: -1px;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Custom checkbox and save info container */
.save-info-container {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: white;
    padding: 8px 16px 8px 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 8px;
}

.custom-checkbox-label input[type="checkbox"] {
    display: none;
}

.custom-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
    background: white;
    position: relative;
}

.custom-checkbox-label input[type="checkbox"]:checked + .custom-checkmark {
    background: #000;
    border-color: #000;
}

.custom-checkmark svg {
    width: 14px;
    height: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.custom-checkbox-label input[type="checkbox"]:checked + .custom-checkmark svg {
    opacity: 1;
}

.checkbox-text {
    flex: 1;
}

.main-text {
    font-size: 14px;
    font-weight: 400;
    color: #32325d;
    line-height: 1.5;
    display: block;
}

.sub-text {
    font-size: 13px;
    color: #1A1A1AB2;
    margin: 0 0 0px 32px;
    line-height: 1.4;
}

/* Checkbox wrapper-19 styles */
.checkbox-wrapper-19 {
    box-sizing: border-box;
    --background-color: #fff;
    --checkbox-height: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

@-moz-keyframes dothabottomcheck-19 {
    0% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@-webkit-keyframes dothabottomcheck-19 {
    0% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@keyframes dothabottomcheck-19 {
    0% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@keyframes dothatopcheck-19 {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

@-webkit-keyframes dothatopcheck-19 {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

@-moz-keyframes dothatopcheck-19 {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

.checkbox-wrapper-19 input[type=checkbox] {
    display: none;
}

.checkbox-wrapper-19 .check-box {
    height: var(--checkbox-height);
    width: var(--checkbox-height);
    background-color: transparent;
    border: calc(var(--checkbox-height) * .1) solid #1A1A1A80;
    border-radius: 4px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 2px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-transition: border-color ease 0.2s;
    -o-transition: border-color ease 0.2s;
    -webkit-transition: border-color ease 0.2s;
    transition: border-color ease 0.2s;
    cursor: pointer;
}

.checkbox-wrapper-19 .check-box::before,
.checkbox-wrapper-19 .check-box::after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    height: 0;
    width: calc(var(--checkbox-height) * .2);
    background-color: #000;
    display: inline-block;
    -moz-transform-origin: left top;
    -ms-transform-origin: left top;
    -o-transform-origin: left top;
    -webkit-transform-origin: left top;
    transform-origin: left top;
    border-radius: 5px;
    content: " ";
    -webkit-transition: opacity ease 0.5;
    -moz-transition: opacity ease 0.5;
    transition: opacity ease 0.5;
}

.checkbox-wrapper-19 .check-box::before {
    top: calc(var(--checkbox-height) * .72);
    left: calc(var(--checkbox-height) * .41);
    box-shadow: 0 0 0 calc(var(--checkbox-height) * .05) var(--background-color);
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.checkbox-wrapper-19 .check-box::after {
    top: calc(var(--checkbox-height) * .37);
    left: calc(var(--checkbox-height) * .05);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.checkbox-wrapper-19 input[type=checkbox]:checked + .check-box,
.checkbox-wrapper-19 .check-box.checked {
    border-color: #1A1A1A80;
}

.checkbox-wrapper-19 input[type=checkbox]:checked + .check-box::after,
.checkbox-wrapper-19 .check-box.checked::after {
    height: calc(var(--checkbox-height) / 2);
    -moz-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    -o-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    -webkit-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    animation: dothabottomcheck-19 0.2s ease 0s forwards;
}

.checkbox-wrapper-19 input[type=checkbox]:checked + .check-box::before,
.checkbox-wrapper-19 .check-box.checked::before {
    height: calc(var(--checkbox-height) * 1.2);
    -moz-animation: dothatopcheck-19 0.4s ease 0s forwards;
    -o-animation: dothatopcheck-19 0.4s ease 0s forwards;
    -webkit-animation: dothatopcheck-19 0.4s ease 0s forwards;
    animation: dothatopcheck-19 0.4s ease 0s forwards;
}

.checkbox-wrapper-19 .checkbox-text {
    flex: 1;
}

/* Phone section */
.phone-section {
    margin-top: 12px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background: white;
    padding: 12px 16px 12px 8px;
    gap: 8px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: calc(100% + 24px);
    margin-left: -8px;
    margin-right: -20px;
    box-sizing: border-box;
}

.phone-input-wrapper.focus-phone {
    outline: 1px solid #3b82f6;
    outline-offset: -1px;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.phone-input-wrapper.error-phone {
    outline: 1px solid #e11d48;
    outline-offset: -1px;
    border-color: #e11d48;
}

.phone-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-flag img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.phone-input-wrapper input {
    border: none;
    background: white !important;
    flex: 1;
    font-size: 14px;
    color: #32325d;
    outline: none;
}

.phone-input-wrapper input:focus {
    outline: none;
}

.phone-input-wrapper input[readonly] {
    color: #8898aa;
    cursor: pointer;
}

/* Active state for phone input */
.phone-input-wrapper input:not([readonly]) {
    cursor: text;
}

/* Cursor for phone wrapper when input is readonly */
.phone-input-wrapper.readonly-state {
    cursor: pointer !important;
}

.phone-input-wrapper:not(.readonly-state) {
    cursor: default;
}

.phone-error-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.phone-error-message {
    font-size: 12px;
    color: #e11d48;
    margin-top: 6px;
    padding-left: 4px;
}

/* Hide phone section when checkbox is unchecked */
.save-info-container:not(.show-phone) .phone-section {
    display: none;
}

/* Hide terms text when checkbox is unchecked */
.save-info-container:not(.show-phone) .terms-text {
    display: none;
}

/* Terms text within save info container */
.save-info-container .terms-text {
    font-size: 12px;
    color: #1A1A1A80;
    margin: 12px 0 0 0;
    line-height: 1.4;
    display: none;
}

/* Show terms text when checkbox is checked */
.save-info-container.show-phone .terms-text {
    display: block;
}

.save-info-container .terms-text a {
    color: #32325d;
    text-decoration: none;
    border-bottom: 1px dotted #32325d;
}

.save-info-container .terms-text a:hover {
    text-decoration: underline;
}

/* Footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    position: relative;
    font-size: 12px;
    color: #8898aa;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-left .stripe-logo {
    fill: #8898aa;
}

.footer-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: #e5e5e5;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-right a {
    color: #8898aa;
    text-decoration: none;
    font-size: 12px;
}

.footer-right a:hover {
    color: #32325d;
}

/* Fix Pay button color */
.pay-button {
    background: rgb(0, 116, 212) !important;
    transition: none !important;
    margin-top: 20px;
}

.pay-button:hover,
.pay-button:focus,
.pay-button:active {
    background: rgb(0, 116, 212) !important;
    outline: none !important;
}

/* Make footer divider more visible */
.footer-divider {
    background-color: #d1d5db !important;
    width: 2px !important;
}

/* Mobile Details Menu - only visible on mobile */
.mobile-details-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #32325d;
    margin-left: auto;
}

.details-text {
    text-decoration: none;
    border-bottom: 1px dotted #32325d;
    font-weight: 400;
}

.details-arrow {
    transition: transform 0.2s ease;
}

/* Show details arrow by default */
.mobile-details-btn .details-arrow {
    display: block !important;
    transition: transform 0.2s ease;
}

/* Rotate details arrow when panel is active (Close state) */
.mobile-details-btn.active .details-arrow {
    transform: rotate(180deg) !important;
}

/* Back button hiding is handled via JavaScript */

.mobile-details-btn:hover .details-text {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* Mobile Details Panel */
.mobile-details-panel {
    display: none; /* Hidden by default */
    position: fixed;
    top: 49px; /* Fixed position below header */
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    overflow: hidden;
}

.mobile-details-panel.active {
    display: block; /* Simply show the panel */
}

/* Remove overlay from panel itself */

.panel-content {
    padding: 10px 16px 25px 16px;
    max-width: 920px;
    margin: 0 auto;
}

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

.merchant-name {
    font-size: 14px;
    font-weight: 400;
    color: #32325d;
}

.order-amount {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.divider-line {
    height: 1px;
    background: #e5e5e5;
    margin: 8px 0;
}

.total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.total-label {
    font-size: 14px;
    font-weight: 400;
    color: #32325d;
}

.total-amount {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Mobile breakpoint - show details button only on mobile */
@media (max-width: 768px) {
    .mobile-details-btn {
        display: flex !important;
    }

    .mobile-details-panel {
        /* Panel will be shown/hidden via .active class */
    }

    .mobile-details-panel.active {
        display: block !important;
    }

    /* Dim all content below panel when panel is active */
    .mobile-details-panel.active ~ .skeleton-container,
    .mobile-details-panel.active ~ .container {
        position: relative;
    }

    .mobile-details-panel.active ~ .skeleton-container::before,
    .mobile-details-panel.active ~ .container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 10;
        pointer-events: none;
    }

    /* Panel is hidden by default with display: none */
}

/* Desktop - hide mobile menu elements */
@media (min-width: 769px) {
    .mobile-details-btn,
    .mobile-details-panel {
        display: none !important;
    }
}

/* US Mode - Hide currency widgets */
.left-panel.us-mode .currency-title,
.left-panel.us-mode .currency-options,
.left-panel.us-mode .exchange-rate {
    display: none !important;
}

/* US Mode - Desktop layout (left aligned, top positioned) */
.left-panel.us-mode {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding-top: 0;
}

/* US Mode - Show merchant name */
.left-panel.us-mode .merchant-info {
    display: block !important;
    order: 1;
    margin-bottom: 0px;
    border-top: none;
    padding: 0;
}

.left-panel.us-mode .merchant-name {
    font-size: 16px !important;
    color: #32325d !important;
    text-align: left;
}

.left-panel.us-mode .merchant-amount {
    display: none !important;
}

/* US Mode amount */
.left-panel.us-mode .us-amount {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    order: 2;
    text-align: left;
}

/* US Mode - Mobile */
@media (max-width: 768px) {
    .left-panel.us-mode::after {
        font-size: 36px;
        margin-top: 24px;
    }

    /* US Mode - Mobile layout (centered) */
    .left-panel.us-mode {
        align-items: center !important;
        text-align: center !important;
    }

    .left-panel.us-mode .merchant-info {
        text-align: center !important;
        margin-bottom: 0px !important;
    }

    .left-panel.us-mode .merchant-name {
        font-size: 18px !important;
        color: #1A1A1A99 !important;
        text-align: center !important;
    }

    .left-panel.us-mode .us-amount {
        font-size: 28px !important;
        text-align: center !important;
    }
}

/* Skeleton Loading Styles */
.skeleton-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: calc(100vh - 100px);
}

.skeleton-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
}

.skeleton-main-content::after {
    content: '';
    position: absolute;
    left: calc(50% - 0.5px);
    top: 0;
    bottom: 0;
    width: 1px;
    background: #f0f0f0;
    z-index: 1000;
}

.skeleton-left-panel {
    padding-right: 40px;
}

.skeleton-currency-title {
    width: 160px;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 16px;
}

.skeleton-currency-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.skeleton-currency-card {
    width: 120px;
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-exchange-rate {
    width: 100px;
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 20px;
}

.skeleton-merchant-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-merchant-name {
    width: 120px;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-merchant-amount {
    width: 80px;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-payment-link {
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-divider {
    height: 1px;
    background: #f0f0f0;
    position: relative;
}

.skeleton-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 24px;
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-email-field {
    width: 100%;
    height: 48px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

.skeleton-payment-method-title {
    width: 120px;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-card-info {
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

.skeleton-cardholder-name {
    width: 100%;
    height: 48px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

.skeleton-country-field {
    width: 100%;
    height: 48px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

.skeleton-checkbox-section {
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

.skeleton-pay-button {
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-footer {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
