/* Shortcode Builder Button */
.wpaw-builder-button {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto !important;
    padding: 0 16px !important;
    height: 36px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(to bottom, #2271b1, #135e96) !important;
    border: none !important;
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) !important;
}

.wpaw-builder-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: -2px;
}

.wpaw-builder-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom, #135e96, #0a4b78) !important;
}

/* Modal Base Styles */
.wpaw-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 160000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wpaw-modal.show {
    opacity: 1;
    visibility: visible;
}

.wpaw-modal-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    /* overflow-y: auto; */
    position: relative;
    z-index: 160001;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.wpaw-modal.show .wpaw-modal-container {
    transform: translateY(0);
}

/* Modal Header */
.wpaw-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e4e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #f8f9fa, #fff);
    border-radius: 12px 12px 0 0;
}

.wpaw-modal-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #1d2327;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.wpaw-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpaw-modal-close:hover {
    color: #d63638;
    background: #f0f0f1;
    transform: rotate(90deg);
}

/* Modal Body */
.wpaw-modal-body {
    padding: 24px;
    max-height: 70vh;
    /* background: #fff; */
}

/* Form Styles */
.wpaw-builder-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpaw-form-group {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e4e7;
    transition: all 0.2s ease;
}

.wpaw-form-group:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wpaw-form-label {
    display: block;
    margin-bottom: 8px;
    color: #1d2327;
    font-weight: 500;
    font-size: 14px;
}

/* Radio Group Styles */
.wpaw-radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.wpaw-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.wpaw-radio-label:hover {
    background: #f0f0f1;
}

.wpaw-radio-label input[type="radio"] {
    margin: 0;
}

.wpaw-radio-text {
    font-size: 14px;
    font-weight: 500;
}

.wpaw-faq-item p {
    margin: 0;
}
.wpaw-faq-item p:last-child {
    margin-bottom: 16px;
}

/* Select and Input Styles */
.wpaw-form-select,
.wpaw-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s ease;
    background: #fff;
}

.wpaw-form-select:focus,
.wpaw-form-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Shortcode Output Styles */
.wpaw-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wpaw-shortcode-input {
    flex: 1;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    padding: 10px 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #1d2327;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wpaw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.wpaw-button-copy {
    background: #2271b1;
    color: #fff;
    min-width: 100px;
}

.wpaw-button-copy:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal Overlay */
.wpaw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 160000;
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .wpaw-modal-container {
        width: 95%;
        margin: 20px;
    }

    .wpaw-radio-group {
        flex-direction: column;
        gap: 12px;
    }

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

    .wpaw-button-copy {
        width: 100%;
    }

    .wpaw-form-group {
        padding: 12px;
    }

    .wpaw-modal-header {
        padding: 16px;
    }

    .wpaw-modal-body {
        padding: 16px;
    }
}