.shik-open-modal-btn.shik-login-button,
a.shik-login-button {
    background-color: #fff;
    color: var(--wd-primary-color);
    padding: 10px 20px;
    border: 1px solid var(--wd-primary-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.shik-open-modal-btn.shik-login-button:hover,
a.shik-login-button:hover {
    color: #fff;
    background-color: var(--wd-primary-color);
}

/* Modal Overlay */
.shik-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    direction: rtl;
}

/* Modal Content */
.shik-modal-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 406px;
    position: relative;
    margin: 1rem;
}

button.shik-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    background-color: #ff4d4d;
    border-radius: 0 16px 0 6px;
}

button.shik-modal-close:hover {
    color: #fff;
    background-color: #ef1c1c;
}

.shik-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.shik-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.shik-modal-header p {
    color: #6b7280;
    margin: 0;
}

/* Forms */
#shik-phone-form,
#shik-otp-form,
#shik-user-info-form {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* User Info Form Styles */
#shik-user-info-form .shik-form-subtitle h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

#shik-user-info-form .shik-form-subtitle p {
    color: #6b7280;
    margin: 0 0 1.5rem 0;
    font-size: 14px;
}

.shik-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.shik-form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shik-form-col label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.shik-form-col input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shik-form-col input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

#shik-save-user-info-btn {
    background-color: #4f46e5;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
}

#shik-save-user-info-btn:hover {
    background-color: #4338ca;
}

#shik-save-user-info-btn:disabled {
    background-color: #a5b4fc;
    cursor: not-allowed;
}

.shik-form-subtitle {
    text-align: center;
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 14px;
}

#shik-display-phone {
    font-weight: bold;
    direction: ltr;
    display: inline-block;
}

#shik-edit-phone {
    color: #4f46e5;
    text-decoration: none;
    font-size: 12px;
    margin-right: 5px;
}

#shik-edit-phone:hover {
    text-decoration: underline;
}

#shik-phone-form label,
#shik-otp-form label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

#shik-phone-form input,
#shik-otp-form input,
#shik-user-info-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#shik-phone-input::placeholder {
    opacity: 0.5
}

#shik-phone-form input:focus,
#shik-otp-form input:focus,
#shik-user-info-form input:focus {
    outline: none;
    border-color: var(--wd-primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

#shik-send-otp-btn,
#shik-verify-otp-btn {
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    background-color: var(--wd-primary-color);
}

#shik-send-otp-btn:hover,
#shik-verify-otp-btn:hover {
    box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.1);
}

#shik-send-otp-btn:disabled,
#shik-verify-otp-btn:disabled {
    background-color: #a5b4fc;
    cursor: not-allowed;
}

/* Error Message */
.shik-error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-right: 4px solid #ef4444;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 14px;
}

/* Resend OTP Container */
.shik-resend-container {
    text-align: center;
    margin-top: 1rem;
    font-size: 14px;
    color: #6b7280;
}

#shik-resend-otp {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    display: none;
}

#shik-resend-otp:hover {
    text-decoration: underline;
}

#shik-resend-otp.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

/* Loader */
.btn-loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

/* Smooth Form Transitions */
.shik-form-transition {
    animation: slideInRight 0.4s ease-out;
}

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

/* Form Hide Animation */
.shik-form-hide {
    animation: slideOutLeft 0.3s ease-in;
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Success Animation */
.shik-success-animation {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Customer Type Selection */
.shik-customer-type-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.shik-radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.shik-radio-option:hover {
    border-color: #4f46e5;
    background-color: #f8fafc;
}

.shik-radio-option input[type="radio"] {
    width: 16px !important;
    height: 16px;
    margin-right: 0;
    margin-left: 8px;
}

.shik-radio-option input:focus {
    box-shadow: none !important
}

.shik-radio-option input[type="radio"]:checked + .radio-label {
    color: #4f46e5;
    font-weight: 500;
}

.shik-radio-option:has(input[type="radio"]:checked) {
    border-color: #4f46e5;
    background-color: #eef2ff;
}

.radio-label {
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    transition: color 0.2s ease;
}

/* Legal Customer Fields */
#shik-legal-fields {
    margin-top: 1rem;
}

#shik-legal-fields .shik-form-row {
    margin-bottom: 1rem;
}

#shik-company-name {
    width: 100%;
}

/* Individual Customer Fields */
#shik-individual-fields .shik-form-row {
    margin-bottom: 1rem;
}

/* Form Transitions for Customer Type */
#shik-individual-fields,
#shik-legal-fields {
    transition: all 0.3s ease;
}

#shik-individual-fields.hide,
#shik-legal-fields.hide {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Hide company field for individual customers */
.woocommerce-checkout .form-row.hidden,
.woocommerce-account .form-row.hidden {
    display: none !important;
}

/* National ID Location Display */
.shik-national-id-location {
    display: block;
    margin-top: 0.5rem;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1.4;
}

.shik-national-id-location.shik-success-location {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.shik-national-id-location.shik-error-location {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 480px) {
    .shik-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .shik-form-col {
        margin-bottom: 1rem;
    }
    
    .shik-modal-content {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .shik-customer-type-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .shik-radio-option {
        justify-content: flex-start;
    }
}