/**
 * Styles for Listo CTA Handler Modal
 */

/* Overlay */
.listo-sms-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: listoFadeIn 0.3s ease;
}

@keyframes listoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dialog */
.listo-sms-dialog {
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: listoSlideUp 0.3s ease;
}

@keyframes listoSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.listo-sms-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.listo-sms-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Content */
.listo-sms-content {
    padding: 2rem;
}

.listo-sms-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    text-align: center;
}

.listo-sms-content > p {
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Form */
#listo-sms-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Phone Input */
.listo-phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.listo-country-code {
    flex: 0 0 auto;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    color: #1f2937;
    cursor: pointer;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.listo-country-code:focus {
    outline: none;
    border-color: #2563eb;
}

.listo-phone-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.listo-phone-input:focus {
    outline: none;
    border-color: #2563eb;
}

.listo-phone-input::placeholder {
    color: #9ca3af;
}

/* Submit Button */
.listo-sms-submit {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.listo-sms-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.listo-sms-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loader */
.listo-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: listoSpin 0.8s linear infinite;
}

@keyframes listoSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Status Messages */
.listo-sms-status {
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listo-sms-success {
    background: #d1fae5;
    color: #065f46;
}

.listo-sms-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Footer */
.listo-sms-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.listo-sms-privacy {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.listo-sms-divider {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 1.5rem 0;
    position: relative;
}

.listo-sms-divider::before,
.listo-sms-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e5e7eb;
}

.listo-sms-divider::before {
    left: 0;
}

.listo-sms-divider::after {
    right: 0;
}

/* Manual Store Links */
.listo-manual-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.listo-store-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.listo-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.listo-store-badge img {
    display: block;
    height: 40px;
    width: auto;
}

/* Responsive */
@media (max-width: 640px) {
    .listo-sms-dialog {
        margin: 1rem;
    }

    .listo-sms-content {
        padding: 1.5rem;
    }

    .listo-sms-content h3 {
        font-size: 1.5rem;
    }

    .listo-phone-input-wrapper {
        flex-direction: column;
    }

    .listo-country-code {
        width: 100%;
    }

    .listo-manual-links {
        flex-direction: column;
        align-items: center;
    }
}
