/* =====================================================
   WC Product Request – Front-end Styles
   ===================================================== */

/* --- Button --- */
.wc-pr-btn {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    background: #1a1a2e !important;
    color: #fff !important;
    border: 2px solid #1a1a2e !important;
    border-radius: 4px;
    padding: .75em 1.6em !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.wc-pr-btn:hover {
    background: #fff !important;
    color: #1a1a2e !important;
}

/* --- Overlay --- */
#wc-pr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: wc-pr-fadein .18s ease;
}

@keyframes wc-pr-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --- Modal box --- */
#wc-pr-modal {
    background: #fff;
    border-radius: 10px;
    padding: 2.2rem 2.4rem;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
    animation: wc-pr-slidein .22s ease;
}

@keyframes wc-pr-slidein {
    from { transform: translateY(18px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

#wc-pr-modal h2 {
    margin: 0 0 .5rem;
    font-size: 1.35rem;
    color: #1a1a2e;
}

#wc-pr-modal p {
    color: #555;
    margin: 0 0 1.2rem;
    font-size: .95rem;
    line-height: 1.5;
}

#wc-pr-modal label {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    color: #222;
    font-size: .9rem;
}

#wc-pr-phone {
    width: 100%;
    box-sizing: border-box;
    padding: .7em 1em;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color .18s;
    margin-bottom: 1rem;
}
#wc-pr-phone:focus {
    border-color: #1a1a2e;
}

/* --- Action buttons row --- */
.wc-pr-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

#wc-pr-submit {
    flex: 1;
    background: #1a1a2e !important;
    color: #fff !important;
    border: 2px solid #1a1a2e !important;
    border-radius: 5px;
    padding: .65em 1.2em !important;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .18s;
}
#wc-pr-submit:hover   { opacity: .85; }
#wc-pr-submit:disabled { opacity: .5; cursor: not-allowed; }

#wc-pr-cancel {
    border-radius: 5px;
    padding: .65em 1.2em !important;
    cursor: pointer;
}

/* --- Close button (×) --- */
#wc-pr-close {
    position: absolute;
    top: .9rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0;
    transition: color .15s;
}
#wc-pr-close:hover { color: #222; }

/* --- Success message --- */
#wc-pr-success {
    margin-top: 1rem;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    #wc-pr-modal {
        padding: 1.5rem 1.2rem;
    }
    .wc-pr-actions {
        flex-direction: column;
    }
}
