.product-stock-button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 8px 0 16px; padding: 10px 14px; background: #fff; color: #173f51; border: 1px solid #b8c9cf; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer; }
.product-stock-button svg { width: 19px; height: 19px; }
.stock-calendar { box-sizing: border-box; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 22px; border: 1px solid #d6e0e2; border-radius: 8px; background: white; color: #192729; box-shadow: 0 20px 80px #122e3933; overflow: auto; }
.stock-calendar::backdrop { background: #10242b88; }
.stock-calendar header { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.stock-calendar header span { font-size: 13px; color: #51696e; }
.stock-calendar h2 { font-size: 20px; line-height: 1.3; margin: 5px 0 18px; overflow-wrap: anywhere; }
.stock-calendar button { display: grid; place-items: center; border: 0; border-radius: 6px; min-width: 36px; min-height: 40px; background: #f1f5f5; color: #203c45; font: inherit; cursor: pointer; }
.stock-calendar button svg { width: 18px; height: 18px; }
.stock-calendar__method { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.stock-calendar select { min-height: 40px; padding: 6px; max-width: 65%; border: 1px solid #c8d5d8; border-radius: 6px; background: white; color: #192729; }
.stock-calendar__month { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center; text-align: center; margin: 20px 0 10px; }
.stock-calendar__week, .stock-calendar__days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; text-align: center; }
.stock-calendar__week { font-size: 12px; color: #52656a; margin-bottom: 8px; }
.stock-calendar__days { min-height: 220px; align-content: start; }
.stock-calendar__days button { min-width: 0; aspect-ratio: 1; min-height: 32px; font-size: 14px; }
.stock-calendar .available { background: #e4f2ec; color: #15513f; }
.stock-calendar .on_request { background: #fff0d0; color: #6c4605; }
.stock-calendar .unavailable { background: #fae7e8; color: #8d303a; }
.stock-calendar button:disabled { opacity: .4; cursor: default; }
.stock-calendar button[aria-pressed="true"] { outline: 2px solid #173f51; outline-offset: 1px; }
.stock-calendar__legend { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0; font-size: 11px; }
.stock-calendar__legend span { display: flex; gap: 5px; align-items: center; }
.stock-calendar__legend b { width: 9px; height: 9px; border: 1px solid #aaa5; border-radius: 2px; }
.stock-calendar__result { border-top: 1px solid #dbe3e4; margin-top: 12px; padding-top: 14px; font-size: 14px; line-height: 1.5; min-height: 75px; }
.stock-calendar__result strong, .stock-calendar__result b { display: block; }
.stock-calendar__result b { font-size: 19px; margin: 6px 0; }
.stock-calendar__result p { margin: 4px 0 0; }
.stock-calendar__days[aria-busy="true"] { background: #f6f8f8; animation: stock-pulse 1s ease-in-out infinite alternate; }
@keyframes stock-pulse { to { opacity: .45; } }
.stock-unlock { margin: 14px 0; padding: 14px; border: 1px solid #cbd7da; border-radius: 6px; font-size: 14px; }
.stock-unlock summary { cursor: pointer; font-weight: 600; }
.stock-unlock p { margin: 10px 0; }
.stock-unlock [data-stock-code-product] { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; padding: 10px 0; }
.stock-unlock label { display: grid; gap: 6px; overflow-wrap: anywhere; }
.stock-unlock input { width: 100%; min-width: 0; min-height: 42px; padding: 8px; box-sizing: border-box; border: 1px solid #b8c9cf; border-radius: 5px; font-size: 16px; }
.stock-unlock button { min-height: 42px; padding: 8px 12px; background: #174559; color: white; border: 0; border-radius: 5px; font: inherit; cursor: pointer; }
.stock-unlock button:disabled { opacity: .5; }
.stock-unlock small { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .stock-calendar__days[aria-busy="true"] { animation: none; } }
