input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

#magicLinkCtaModal .modal-dialog {
    max-width: 500px;
    margin: 60px auto;
}
#magicLinkCtaModal .modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18) !important;
    overflow: hidden;
    font-family: 'Gotham SSm A', 'Gotham SSm B'; font-weight: 500; font-style: normal;
}
#magicLinkCtaModal .modal-header {
    padding: 0 !important;
    border-bottom: none !important;
    min-height: unset !important;
    position: relative;
}
#magicLinkCtaModal .modal-body {
    padding: 42px 43px 40px !important;
    text-align: center !important;
}
#magicLinkCtaModal .ml-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    margin: 0 !important;
    padding: 4px !important;
    float: none !important;
    font-size: 20px !important;
    color: #9ca3af !important;
    background: none !important;
    border: none !important;
    line-height: 1 !important;
    z-index: 10;
    opacity: 1 !important;
    cursor: pointer;
}
#magicLinkCtaModal .ml-close:hover {
    color: #374151 !important;
    opacity: 1 !important;
}
#magicLinkCtaModal .ml-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #fef2f2;
    border-radius: 50%;
    margin-bottom: 20px;
}
#magicLinkCtaModal .ml-icon {
    font-size: 22px !important;
    color: #dc2626 !important;
}
#magicLinkCtaModal .ml-heading {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 8px !important;
}
#magicLinkCtaModal .ml-subtext {
    font-size: 14px !important;
    color: #4b5563 !important;
    margin: 0 0 4px !important;
    line-height: 1.5;
}
#magicLinkCtaModal .ml-email-highlight {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-bottom: 16px !important;
    overflow-wrap: anywhere;
}
@keyframes ml-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
#magicLinkCtaModal #magic-link-cta-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-top: 18px !important;
}
#magicLinkCtaModal #magic-link-cta-buttons .ml-cta-btn:only-child {
    grid-column: 1 / -1 !important;
    max-width: 200px !important;
    margin: 0 auto !important;
    width: 100% !important;
}
#magicLinkCtaModal .ml-cta-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 112px !important;
    padding: 18px 12px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    text-decoration: none !important;
    transition: all .2s ease !important;
    position: relative !important;
    overflow: hidden !important;
}
#magicLinkCtaModal .ml-cta-btn:last-child {
    margin-bottom: 0 !important;
}
#magicLinkCtaModal .ml-cta-btn:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
    color: #1f2937 !important;
    text-decoration: none !important;
}
#magicLinkCtaModal .ml-cta-btn img {
    width: 34px !important;
    height: 34px !important;
    margin-bottom: 12px !important;
    object-fit: contain !important;
}
#magicLinkCtaModal .ml-cta-btn span {
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
}
#magicLinkCtaModal .ml-cta-btn .ml-cta-ext {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    font-size: 11px !important;
    color: #c4c4c4 !important;
}
#magicLinkCtaModal .ml-helper-text {
    font-size: 13px !important;
    color: #7b808b !important;
    margin-top: 21px !important;
    line-height: 1.5;
}
#magicLinkCtaModal .provider-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
    text-align: left;
    padding: 0 4px;
}
#magicLinkCtaModal .provider-disclaimer .info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}
#magicLinkCtaModal .provider-disclaimer strong {
    color: #374151;
    font-weight: 600;
}
#magicLinkCtaModal .ml-footer-actions {
    border-top: 1px solid #f3f4f6 !important;
    margin-top: 26px !important;
    padding-top: 18px !important;

    font-size: 14px !important;
}
#magicLinkCtaModal .ml-footer-divider {
    color: #d1d5db !important;
}
#magicLinkCtaModal .ml-link-action {
    color: #c91f27 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    padding: 0 !important;
    box-shadow: none !important;
}
#magicLinkCtaModal .ml-link-action:hover {
    text-decoration: underline !important;
    background: none !important;
    color: #dc2626 !important;
}
#magicLinkCtaModal .ml-link-action:disabled {
    color: #9ca3af !important;
    cursor: not-allowed !important;
}
#magicLinkCtaModal .ml-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 14px;
}
#magicLinkCtaModal .ml-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 24px 0 18px !important;
}
#magicLinkCtaModal .ml-divider::before,
#magicLinkCtaModal .ml-divider::after {
    content: '' !important;
    flex: 1 !important;
    border-bottom: 1px solid #e5e7eb !important;
}
#magicLinkCtaModal .section-divider-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
}
@media (max-width: 480px) {
    .magic-link-modal-wrapper .magic-link-dialog {
        width: calc(100% - 20px);
        margin: 20px auto;
    }
    .magic-link-modal-wrapper .magic-link-header {
        padding: 28px 20px 0 !important;
    }
    .magic-link-modal-wrapper .magic-link-body {
        padding: 10px 20px 24px !important;
    }
    .magic-link-modal-wrapper .magic-link-footer {
        padding: 0 20px 24px !important;
    }

    #magicLinkCtaModal .modal-dialog {
        width: calc(100% - 20px);
        margin: 20px auto;
    }
    #magicLinkCtaModal .modal-body {
        padding: 28px 20px 24px !important;
    }
}
.magic-link-modal-wrapper .magic-link-dialog {
    width: 500px !important;
    max-width: calc(100% - 32px);
    margin: 70px auto;
}
.magic-link-modal-wrapper .magic-link-content {
    background: #ffffff;
    border: none !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.28);
    font-family: 'Gotham SSm A', 'Gotham SSm B'; font-weight: 500; font-style: normal;
    height: auto;
    min-height: unset;
}
.magic-link-modal-wrapper .magic-link-header {
    border: 0 !important;
    padding: 32px 32px 0;
}
.magic-link-modal-wrapper .modal-title {
    margin: 0;
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.2px;
}
.magic-link-modal-wrapper .magic-link-body {
    padding: 12px 32px 20px;
}
.magic-link-modal-wrapper .magic-link-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    margin: 0 !important;
    padding: 4px !important;
    float: none !important;
    font-size: 20px !important;
    color: #9ca3af !important;
    background: none !important;
    border: none !important;
    line-height: 1 !important;
    z-index: 10;
    opacity: 1 !important;
    cursor: pointer;
}
.magic-link-modal-wrapper .magic-link-close:hover {
    color: #374151 !important;
    opacity: 1 !important;
}
#modalDescription {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
}
.contact-method-options {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 10px;
}
.contact-method-options input[type="radio"] {
    margin: 0 -6px 0 0 !important;
    cursor: pointer;
    transform: scale(1.05);
}
.contact-method-options label {
    margin: 0 !important;
    color: #475467;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}
.magic-link-label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}
#contact-input {
    width: 100%;
    height: 48px;
    border: 1px solid #d0d5dd !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    padding: 0 14px !important;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 400;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.18s ease;
}
#contact-input:focus {
    border-color: #ff0015 !important;
    box-shadow: 0 0 0 4px rgba(255,0,21,0.08) !important;
}
#contact-input::placeholder {
    color: #98a2b3;
}
.magic-link-modal-wrapper .magic-link-footer {
    border: 0 !important;
    background: transparent !important;
    padding: 0 32px 32px;
    margin: 0;
}
.magic-link-submit-btn {
    width: 100%;
    height: 48px;
    border: 0 !important;
    border-radius: 10px !important;
    background: #c91f27 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Gotham SSm A', 'Gotham SSm B'; font-weight: 500; font-style: normal;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background 0.2s ease;
    margin: 0 !important;
    outline: none !important;
}
.magic-link-submit-btn:hover,
.magic-link-submit-btn:focus,
.magic-link-submit-btn:active {
    background: #b91c1c !important;
    color: #ffffff !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}
.magic-link-submit-btn::-moz-focus-inner {
    border: 0 !important;
}
@media (max-width: 480px) {
    .magic-link-modal-wrapper .magic-link-dialog {
        width: calc(100% - 20px);
        margin: 20px auto;
    }
    .magic-link-modal-wrapper .magic-link-header {
        padding: 28px 20px 0;
    }
    .magic-link-modal-wrapper .magic-link-body {
        padding: 10px 20px 24px;
    }
    .magic-link-modal-wrapper .magic-link-footer {
        padding: 0 20px 24px;
    }
}

#magicLinkCtaModal #ml-provider-success {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    color: #2e7d32 !important;
    font-weight: 500;
}

#magicLinkCtaModal .ml-link-action:disabled {
    color: #9ca3af !important;
    cursor: not-allowed !important;
    text-decoration: none !important;
}

#magicLinkCtaModal .ml-link-action:disabled:hover {
    text-decoration: none !important;
    color: #9ca3af !important;
}

.magic-link-content,
.ml-content {
    position: relative !important;
    overflow: hidden !important;
}

.ml-modal-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all !important;
    cursor: not-allowed !important;
}

.ml-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: mlSpin 0.8s linear infinite;
    pointer-events: none !important;
}

@keyframes mlSpin {
    100% { transform: rotate(360deg); }
}

.hide {
    display: none !important;
}

.trust-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
    width: 100%;
    text-align: center;
    flex-wrap: nowrap !important;
    padding: 0 10px;
    box-sizing: border-box;
}

.trust-row .dot {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 1.6s ease-in-out infinite;
    flex-shrink: 0 !important;
    margin-top: 5px;
}

#ml-expiry-time {
    margin: 0;
    line-height: 1.4;
    display: inline;
    word-break: break-word;
    white-space: normal;
    text-align: left;
    flex: 1;
}

@media (max-width: 480px) {
    .trust-row {
        padding: 0 8px !important;
    }
    #ml-expiry-time {
        font-size: 11px !important;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
