/* ── Request Product: Form ─────────────────────────────────────────────────── */

.dg-rp-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: inherit;
}

.dg-rp-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dg-rp-desc {
    color: #666;
    margin-bottom: 24px;
}

.dg-rp-overlay-wrapper {
    position: relative;
}

.dg-rp-form-container--blurred {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

.dg-rp-guest-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg-rp-guest-overlay__inner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

.dg-rp-guest-overlay__inner p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
}

.dg-rp-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dg-rp-field label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
}

.dg-rp-required { color: #dc2626; }
.dg-rp-optional { color: #9ca3af; font-weight: 400; }

.dg-rp-field input[type="text"],
.dg-rp-field input[type="url"],
.dg-rp-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
    background: #fff;
    color: #111;
}

.dg-rp-field input:focus,
.dg-rp-field textarea:focus {
    outline: none;
    border-color: #781BAF;
    box-shadow: 0 0 0 3px rgba(120, 27, 175, .12);
}

.dg-rp-field input[type="file"] {
    font-size: 0.9rem;
    padding: 8px 0;
    border: none;
}

.dg-rp-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid #781BAF;
    background: #781BAF;
    color: #fff !important;
    transition: background .18s, transform .12s;
}

.dg-rp-btn:hover {
    background: #9B2DD4;
    border-color: #9B2DD4;
    transform: translateY(-1px);
}

.dg-rp-btn--outline {
    background: transparent;
    color: #781BAF !important;
    margin-inline-start: 8px;
}

.dg-rp-btn--outline:hover {
    background: #f3e8ff;
}

.dg-rp-btn--primary {
    padding: 12px 28px;
    font-size: 1.05rem;
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

.dg-rp-btn--primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.dg-rp-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.95rem;
}

.dg-rp-notice--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.dg-rp-notice--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Request Product: Progress Bar ───────────────────────────────────────── */
/* Theme-aware: dark by default (digtiali-fse's default surface), with an
   explicit light override for html[data-theme="light"] — same pattern the
   theme itself uses everywhere else (see single-product.css). Falls back
   sensibly even where digtiali-fse isn't the active theme. */

.dg-preorder-bar {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-family: inherit;
}

.dg-preorder-bar--compact {
    padding: 10px 14px;
    margin-top: 8px;
    border-radius: 8px;
    background: #faf5ff;
    border-color: #e9d5ff;
}

.dg-preorder-bar__notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.dg-preorder-bar__notice-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #781BAF;
}

.dg-preorder-bar__amounts {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #374151;
}

.dg-preorder-bar__raised {
    font-size: 1.25rem;
    font-weight: 700;
    color: #781BAF;
}

.dg-preorder-bar--compact .dg-preorder-bar__raised {
    font-size: 1rem;
}

.dg-preorder-bar__sep {
    color: #9ca3af;
    margin: 0 4px;
}

.dg-preorder-bar__goal {
    font-weight: 600;
    color: #374151;
}

.dg-preorder-bar__track {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.dg-preorder-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #781BAF, #9B2DD4);
    border-radius: 999px;
    transition: width .6s ease;
    min-width: 4px;
}

.dg-preorder-bar__pct {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.dg-preorder-bar__supporters {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

/* ── digtiali-fse dark mode (default — html has no data-theme="light") ──── */

html:not([data-theme="light"]) .dg-preorder-bar {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(160, 32, 232, 0.3);
}

html:not([data-theme="light"]) .dg-preorder-bar--compact {
    background: rgba(160, 32, 232, 0.08);
    border-color: rgba(160, 32, 232, 0.25);
}

html:not([data-theme="light"]) .dg-preorder-bar__notice {
    color: rgba(255, 255, 255, 0.65);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html:not([data-theme="light"]) .dg-preorder-bar__notice-icon {
    color: #c77dff;
}

html:not([data-theme="light"]) .dg-preorder-bar__amounts,
html:not([data-theme="light"]) .dg-preorder-bar__goal {
    color: #ffffff;
}

html:not([data-theme="light"]) .dg-preorder-bar__raised {
    color: #c77dff;
}

html:not([data-theme="light"]) .dg-preorder-bar__sep,
html:not([data-theme="light"]) .dg-preorder-bar__pct,
html:not([data-theme="light"]) .dg-preorder-bar__supporters {
    color: rgba(255, 255, 255, 0.55);
}

html:not([data-theme="light"]) .dg-preorder-bar__track {
    background: rgba(255, 255, 255, 0.12);
}

html:not([data-theme="light"]) .dg-preorder-bar__fill {
    background: linear-gradient(90deg, #A020E8, #c77dff);
}
