.fdas-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fdas-modal.fdas-open {
    display: flex;
}

.fdas-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.fdas-modal-card {
    position: relative;
    width: min(94vw, 460px);
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    text-align: center;
    font-family: inherit;
}

.fdas-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3e3;
    font-size: 28px;
}

.fdas-modal-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.25;
    color: #1f2937;
}

.fdas-modal-card p {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

.fdas-label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 700;
    color: #111827;
}

#fdas-area-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    background: #fff;
    color: #111827;
}

.fdas-submit,
.fdas-change-area {
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    transition: transform .15s ease, opacity .15s ease;
}

.fdas-submit:hover,
.fdas-change-area:hover {
    transform: translateY(-1px);
}

.fdas-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.fdas-submit {
    width: 100%;
    margin-top: 16px;
    min-height: 48px;
    background: #f97316;
    color: #fff;
    font-size: 15px;
}

.fdas-message {
    min-height: 18px;
    margin-top: 12px;
    font-size: 14px;
}

.fdas-error {
    color: #dc2626;
    background: #fee2e2;
    padding: 10px 12px;
    border-radius: 10px;
}

.fdas-area-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100vw - 28px);
    background: #111827;
    color: #ffffff;
    padding: 10px 12px 10px 16px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    font-size: 14px;
}

.fdas-area-bar strong {
    color: #fde68a;
}

.fdas-change-area {
    background: #f97316;
    color: #fff;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
}

.fdas-shortcode-selector {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 520px) {
    .fdas-modal-card {
        padding: 24px 18px;
    }

    .fdas-area-bar {
        width: calc(100vw - 24px);
        justify-content: space-between;
        border-radius: 16px;
        bottom: 10px;
    }

    .fdas-area-bar-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
