/**
 * PG Size Chart - Frontend Styles
 *
 * @author    PG
 * @copyright 2026 PG
 * @license   Proprietary
 */

:root {
    --pgsc-ink-blue: #0B0049;
    --pgsc-off-white: #FFFDF6;
    --pgsc-purple-ink: #504E99;
    --pgsc-gray-blue: #C9CCE5;
    --pgsc-burgundy: #772944;
    --pgsc-red: #BC254D;
    --pgsc-vibrant-red: #F42C46;
    --pgsc-dark-patina: #006069;
    --pgsc-patina-green: #64BED2;
    --pgsc-soft-blue: #CCE8F2;
    --pgsc-golden: #E9BD7A;
    --pgsc-beige: #E9E0C7;
    --pgsc-light-yellow: #FFF2CD;
    --pgsc-font-family: 'Ufficio', sans-serif;
}

.pgsc-wrap {
    font-family: var(--pgsc-font-family);
    margin: 8px 0 14px;
    line-height: 1.2;
}

.pgsc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    color: var(--pgsc-ink-blue);
    border: 1px solid var(--pgsc-ink-blue);
    border-radius: 0;
    font-family: var(--pgsc-font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}

.pgsc-btn:hover,
.pgsc-btn:focus {
    background: var(--pgsc-ink-blue);
    color: var(--pgsc-off-white);
    outline: none;
}

.pgsc-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.pgsc-btn-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.pgsc-btn-label {
    white-space: nowrap;
}

.pgsc-hidden {
    display: none !important;
}

.pgsc-wrap-empty {
    display: none !important;
}

.pgsc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--pgsc-font-family);
}

.pgsc-modal[hidden] {
    display: none;
}

.pgsc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 0, 73, 0.75);
    cursor: pointer;
}

.pgsc-modal-dialog {
    position: relative;
    background: var(--pgsc-off-white);
    max-width: 900px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 28px 28px 24px;
    box-shadow: 0 18px 60px rgba(11, 0, 73, 0.35);
    animation: pgsc-fade-in 0.2s ease;
}

@keyframes pgsc-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pgsc-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--pgsc-ink-blue);
    border: 0;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    transition: color 0.2s ease;
}

.pgsc-modal-close:hover,
.pgsc-modal-close:focus {
    color: var(--pgsc-red);
    outline: none;
}

.pgsc-modal-title {
    font-family: var(--pgsc-font-family);
    color: var(--pgsc-ink-blue);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 36px 14px 0;
    line-height: 1.3;
}

.pgsc-modal-body {
    display: flex;
    justify-content: center;
}

.pgsc-modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

body.pgsc-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .pgsc-modal-dialog {
        padding: 40px 16px 16px;
    }
    .pgsc-modal-title {
        font-size: 1rem;
    }
    .pgsc-btn {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
}
