/**
 * hmcalendar · Botón "Guardar para una fecha" en la ficha de producto
 * Tokens HKFinal (con fallback por si tokens.css no estuviera cargado).
 */
.hmgs-wrap { position: relative; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hk-line, #EBDDD0); }

.hmgs-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 18px;
    border: 1.5px solid var(--hk-accent, #8A4A4A);
    border-radius: 999px;
    background: transparent;
    color: var(--hk-accent, #8A4A4A);
    font-family: var(--hk-font-sans, "Inter", sans-serif);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.hmgs-btn:hover { background: var(--hk-accent, #8A4A4A); color: var(--hk-cream, #FBF6EF); }
.hmgs-ico { flex-shrink: 0; }
.hmgs-note { display: block; margin-top: 8px; text-align: center; font-family: var(--hk-font-sans, "Inter", sans-serif); font-size: 11px; line-height: 1.4; color: var(--hk-ink-3, #9A8780); }

.hmgs-pop {
    position: absolute;
    z-index: 200;
    top: calc(100% + 8px);
    left: 0;
    width: 290px;
    max-width: 92vw;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--hk-line, #EBDDD0);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(58, 44, 40, .18);
}
.hmgs-pop[hidden] { display: none; }
.hmgs-pop-title { margin-bottom: 10px; font-family: var(--hk-font-serif, "Fraunces", serif); font-size: 15px; color: var(--hk-ink, #3A2C28); }
.hmgs-pop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 230px; overflow: auto; }
.hmgs-pop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.hmgs-pop-item:hover { background: var(--hk-paper, #F5EAE2); }
.hmgs-check {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid var(--hk-line, #EBDDD0);
    border-radius: 6px;
    background: #fff;
}
.hmgs-pop-item.is-on .hmgs-check { background: var(--hk-sage-dk, #6F8568); border-color: var(--hk-sage-dk, #6F8568); }
.hmgs-pop-item.is-on .hmgs-check::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}
.hmgs-pop-item-label { font-family: var(--hk-font-sans, "Inter", sans-serif); font-size: 13px; color: var(--hk-ink, #3A2C28); }
.hmgs-pop-msg { padding: 6px 2px; font-family: var(--hk-font-sans, "Inter", sans-serif); font-size: 12.5px; color: var(--hk-ink-2, #6B5852); }
.hmgs-pop-new {
    display: inline-block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--hk-line-soft, #F3E7DC);
    font-family: var(--hk-font-sans, "Inter", sans-serif);
    font-size: 12px;
    font-weight: 600;
    color: var(--hk-accent, #8A4A4A);
    text-decoration: none;
}
.hmgs-pop-new:hover { text-decoration: underline; }
