/* ==============================================
   NITRAS Größentabelle – Frontend Styles
   ============================================== */

/* ── Link-Wrapper ─────────────────────────────── */
.nsg-size-guide-link-wrap {
    margin-bottom: -18px;
}

.nsg-size-guide-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #000000;          /* Orange passend zum NITRAS-Shop-Stil */
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nsg-size-guide-trigger:hover,
.nsg-size-guide-trigger:focus {
  color: #000000;
border-bottom-color: #000000;
outline: none;
}

.nsg-size-guide-trigger svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nsg-size-guide-trigger:hover svg {
    transform: scale(1.15);
}

/* ── Overlay / Modal ──────────────────────────── */
.nsg-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.72);
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* backdrop blur für moderne Browser */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nsg-overlay.is-active {
    display: flex;
    animation: nsgFadeIn 0.2s ease;
}

@keyframes nsgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.nsg-modal {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    animation: nsgSlideUp 0.25s ease;
}

@keyframes nsgSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Modal-Header */
.nsg-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.nsg-modal__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.nsg-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    color: #444;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.nsg-modal__close:hover {
    background: #e07b00;
    color: #fff;
}

/* Modal-Bild */
.nsg-modal__body {
    padding: 16px;
}

.nsg-modal__body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Lade-Spinner */
.nsg-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 120px;
}

.nsg-spinner::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #e5e5e5;
    border-top-color: #e07b00;
    border-radius: 50%;
    animation: nsgSpin 0.6s linear infinite;
}

@keyframes nsgSpin {
    to { transform: rotate(360deg); }
}
