/* === GL BIOCHEM — PACKAGING UPGRADE TOGGLES (/peptides) === */

.pen-upgrade-toggle {
    margin-top: 8px;
}
.pen-upgrade-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 11px;
    background: linear-gradient(135deg, #F2F1F8 0%, #E9E6F3 100%);
    border: 1.5px solid #D9D4EC;
    border-radius: 10px;
    transition: all 0.2s ease;
    user-select: none;
}
.pen-upgrade-label:hover {
    border-color: #9A8CC9;
    background: linear-gradient(135deg, #E9E6F3 0%, #D9D4EC 100%);
}
.pen-upgrade-label:focus-visible {
    outline: 2px solid #5D4EA3;
    outline-offset: 2px;
}
.pen-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    background: #C3BDA8;
    border-radius: 10px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.pen-toggle-track.active { background: #5D4EA3; }
.pen-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.pen-toggle-track.active .pen-toggle-thumb { transform: translateX(16px); }
.pen-upgrade-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.pen-upgrade-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #463A7D;
    /* Cards are ~280px wide — wrap rather than truncate the offer. */
    line-height: 1.25;
}
.pen-upgrade-title i {
    margin-right: 3px;
    font-size: 0.7rem;
}
.pen-upgrade-price {
    font-size: 0.7rem;
    color: #5D4EA3;
    font-weight: 600;
}
.pen-learn-more {
    color: #5D4EA3;
    text-decoration: underline;
    font-weight: 700;
    cursor: pointer;
}
.pen-learn-more:hover { color: #463A7D; }
.spray-learn-more {
    color: #0284C7;
    text-decoration: underline;
    font-weight: 700;
    cursor: pointer;
}
.spray-learn-more:hover { color: #0369A1; }

/* Nasal spray variant */
.spray-label {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-color: #BAE6FD;
}
.spray-label:hover {
    border-color: #38BDF8;
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
}
.spray-label:focus-visible { outline-color: #0284C7; }
.spray-track.active { background: #0284C7; }
.spray-title { color: #0369A1; }
.spray-price { color: #0284C7; }

/* ── Info popup ── */
.pen-info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28,45,82,0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 20px;
}
.pen-info-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.pen-info-popup {
    background: #fff;
    border-radius: 10px;
    padding: 28px 24px 24px;
    max-width: 360px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(28,45,82,0.25);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}
.pen-info-overlay.visible .pen-info-popup { transform: scale(1); }
.pen-info-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #98A09A;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.pen-info-close:hover { color: #1C2D52; }
.pen-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #E9E6F3, #D9D4EC);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.pen-info-icon i {
    font-size: 1.2rem;
    color: #5D4EA3;
}
.spray-info-icon { background: linear-gradient(135deg, #E0F2FE, #BAE6FD); }
.spray-info-icon i { color: #0284C7; }
.pen-info-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1C2D52;
    margin: 0 0 6px;
}
.pen-info-desc {
    font-size: 0.85rem;
    color: #6C7670;
    margin: 0 0 14px;
    line-height: 1.4;
}
.pen-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pen-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: #3D463F;
    line-height: 1.3;
}
.pen-info-list li i {
    color: #5D4EA3;
    font-size: 0.8rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.spray-info-list li i { color: #0284C7; }
.pen-info-footer {
    font-size: 0.78rem;
    color: #5D4EA3;
    font-weight: 600;
    background: #F2F1F8;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
}
.spray-info-footer { color: #0284C7; background: #F0F9FF; }

@media (max-width: 480px) {
    .pen-upgrade-label { padding: 6px 10px; gap: 8px; }
    .pen-upgrade-title { font-size: 0.72rem; }
    .pen-upgrade-price { font-size: 0.65rem; }
    .pen-toggle-track { width: 32px; height: 18px; }
    .pen-toggle-thumb { width: 14px; height: 14px; }
    .pen-toggle-track.active .pen-toggle-thumb { transform: translateX(14px); }
    .pen-info-popup { padding: 24px 18px 20px; }
}
