/* Universal Responsive Prompt Box - All Devices (Desktop, Mobile, Tablet, Chrome, Safari, Android) */
.wppb-wrapper,
.wppb-wrapper * {
    box-sizing: border-box !important;
}

.wppb-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* TOP HEADER */
.wppb-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 18px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    width: 100% !important;
}

.wppb-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.wppb-icon {
    font-size: 16px !important;
}

/* PROMPT TEXT CONTENT */
.wppb-content {
    display: block !important;
    width: 100% !important;
    padding: 18px 20px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #334155 !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    background: #ffffff !important;
    font-family: Consolas, Monaco, "Courier New", monospace !important;
}

/* BOTTOM FOOTER - GUARANTEED BOTTOM ON ALL SCREENS */
.wppb-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 12px 18px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    width: 100% !important;
    margin-top: auto !important;
}

.wppb-btn-group {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: auto !important;
}

/* BUTTON STYLES */
.wppb-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    line-height: 1.2 !important;
    outline: none !important;
}

.wppb-action-btn:hover:not(:disabled) {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.wppb-action-btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.95 !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0284c7 !important;
    font-weight: 600 !important;
}

/* ANTI-COPY SELECTION RESTRICTIONS */
.no-copy-select {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* MOBILE & TABLET ADAPTIVE RESPONSIVENESS */
@media screen and (max-width: 640px) {
    .wppb-wrapper {
        margin: 16px 0 !important;
        border-radius: 8px !important;
    }
    .wppb-header {
        padding: 10px 14px !important;
    }
    .wppb-content {
        padding: 14px 14px !important;
        font-size: 13.5px !important;
    }
    .wppb-footer {
        padding: 10px 14px !important;
        justify-content: stretch !important;
    }
    .wppb-btn-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
    }
    .wppb-action-btn {
        flex: 1 1 50% !important;
        padding: 10px 8px !important;
        font-size: 12.5px !important;
        text-align: center !important;
    }
}

/* DARK THEME SUPPORT */
.wppb-dark-theme {
    background: #0f172a !important;
    border-color: #334155 !important;
}

.wppb-dark-theme .wppb-header,
.wppb-dark-theme .wppb-footer {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.wppb-dark-theme .wppb-title {
    color: #f1f5f9 !important;
}

.wppb-dark-theme .wppb-content {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

.wppb-dark-theme .wppb-action-btn {
    background: #334155 !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

.wppb-dark-theme .wppb-action-btn:hover:not(:disabled) {
    background: #475569 !important;
    color: #ffffff !important;
}