/* tlačítko na detailu produktu */
.sizeguide-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 4px 0;
    padding: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid currentColor;
    font-size: .9rem;
    color: #111;
    cursor: pointer;
}
.sizeguide-trigger:hover { opacity: .65; }

/* modal */
.sizeguide-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.sizeguide-modal {
    position: relative;
    background: #fff;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 24px;
    box-sizing: border-box;
}
.sizeguide-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #111;
}
.sizeguide-title {
    margin: 0 0 6px 0;
    font-size: 1.3rem;
    font-weight: 700;
}
.sizeguide-intro {
    margin: 0 0 20px 0;
    font-size: .875rem;
    color: #666;
}

/* rozbalovací sekce (přebírá strukturu ze stránky) */
.sizeguide-content details {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin: 0 0 8px 0;
    overflow: hidden;
}
.sizeguide-content summary {
    cursor: pointer;
    padding: 14px 40px 14px 16px;
    font-weight: 700;
    font-size: .95rem;
    list-style: none;
    position: relative;
    user-select: none;
}
.sizeguide-content summary:hover { background: #f7f7f7; }
.sizeguide-content summary::-webkit-details-marker { display: none; }
.sizeguide-content summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: translateY(-65%) rotate(45deg);
    transition: transform .3s ease;
}
.sizeguide-content details[open] summary::after {
    transform: translateY(-35%) rotate(-135deg);
}

.sizeguide-content .vt-wrap { overflow-x: auto; padding: 0 16px 6px 16px; }
.sizeguide-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}
.sizeguide-content th,
.sizeguide-content td {
    border: 1px solid #e5e5e5;
    padding: 8px 10px;
    text-align: center;
    font-size: .85rem;
}
.sizeguide-content th { background: #f7f7f7; font-weight: 700; }
.sizeguide-content td:first-child { font-weight: 700; }
.sizeguide-content .vt-note {
    font-size: 12px;
    color: #888;
    margin: 6px 16px 14px 16px;
}

@media (max-width: 575px) {
    .sizeguide-modal { padding: 22px 16px; }
    .sizeguide-content th,
    .sizeguide-content td { padding: 6px 8px; font-size: .78rem; }
}