#hcbf-overlay,
#hcbf-overlay *,
.hcbf-cart-panel,
.hcbf-cart-panel * {
    box-sizing: border-box;
}
#hcbf-overlay[hidden] { display: none !important; }
#hcbf-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(8, 10, 13, .78);
    overscroll-behavior: contain;
    color: #17191e;
    text-align: left;
    font: 16px/1.5 Arial, Helvetica, sans-serif;
    -webkit-text-size-adjust: 100%;
}
#hcbf-overlay .hcbf-dialog {
    position: relative;
    width: 850px;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    outline: none;
}
#hcbf-overlay .hcbf-dialog-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: inherit;
}
#hcbf-overlay .hcbf-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #d6d9de;
    border-radius: 50%;
    background: #fff;
    color: #14161a;
    font: 32px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transform: none;
}
#hcbf-overlay .hcbf-close::before,
#hcbf-overlay .hcbf-close::after { display: none; }
#hcbf-overlay .hcbf-art {
    display: flex;
    align-items: center;
    background: #070707;
    min-width: 0;
}
#hcbf-overlay .hcbf-art img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    border: 0;
    object-fit: contain;
}
#hcbf-overlay .hcbf-copy { padding: 34px 30px 26px; min-width: 0; }
#hcbf-overlay .hcbf-eyebrow,
.hcbf-cart-panel .hcbf-eyebrow {
    margin: 0 0 10px;
    color: #515761;
    font: 700 11px/1.5 Arial, Helvetica, sans-serif;
    letter-spacing: 1.4px;
}
#hcbf-overlay .hcbf-now {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 4px;
    background: #fcebed;
    color: #bd0024;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
#hcbf-overlay #hcbf-title {
    margin: 12px 0 16px;
    color: #13161a;
    font: 800 39px/1.06 Arial, Helvetica, sans-serif;
    letter-spacing: -1.3px;
    text-transform: none;
}
#hcbf-overlay p { margin: 0 0 16px; }
#hcbf-overlay #hcbf-intro { font-size: 18px; line-height: 1.5; }
#hcbf-overlay .hcbf-secondary { padding-top: 14px; border-top: 1px solid #e2e4e8; }
#hcbf-overlay .hcbf-secondary span { font-size: 13px; color: #515761; }
#hcbf-overlay .hcbf-automatic { font-size: 13px; color: #404650; }
#hcbf-overlay a.hcbf-primary,
.hcbf-cart-panel .hcbf-save-size {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    margin: 0;
    border: 1px solid #c70028;
    border-radius: 6px;
    background: #c70028;
    color: #fff;
    font: 700 15px/1.4 Arial, Helvetica, sans-serif;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
}
#hcbf-overlay a.hcbf-primary:hover,
.hcbf-cart-panel .hcbf-save-size:hover { background: #aa0022; border-color: #aa0022; color: #fff; }
#hcbf-overlay a.hcbf-shop { display: block; margin: 12px 0 14px; text-align: center; color: #272c34; font-size: 14px; text-decoration: underline; }
#hcbf-overlay .hcbf-terms,
.hcbf-cart-panel .hcbf-terms { margin: 0; font-size: 11px; color: #606773; line-height: 1.6; }
#hcbf-overlay button:focus-visible,
#hcbf-overlay a:focus-visible,
.hcbf-cart-panel :focus-visible { outline: 3px solid #2463cc; outline-offset: 3px; }
.hcbf-cart-panel {
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid #dfe2e7;
    border-left: 4px solid #c70028;
    border-radius: 8px;
    background: #fff;
    color: #20252c;
    text-align: left;
    font: 15px/1.5 Arial, Helvetica, sans-serif;
}
.hcbf-cart-panel h2 { font: 700 22px/1.3 Arial, Helvetica, sans-serif; color: #15191f; margin: 0 0 8px; }
.hcbf-cart-panel p { margin: 0 0 12px; }
.hcbf-cart-panel .hcbf-size-form { margin: 16px 0 12px; }
.hcbf-cart-panel label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.hcbf-cart-panel .hcbf-size-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; max-width: 560px; }
.hcbf-cart-panel select {
    display: block;
    flex: 1 1 230px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    height: auto;
    margin: 0;
    padding: 10px 28px 10px 12px;
    border: 1px solid #959da9;
    border-radius: 5px;
    background-color: #fff;
    color: #1f252d;
    font: 16px/1.5 Arial, Helvetica, sans-serif;
}
.hcbf-cart-panel .hcbf-size-status { min-height: 0; margin: 8px 0 0; font-size: 13px; }
.hcbf-cart-panel .hcbf-size-status:empty { display: none; }
.hcbf-cart-panel .hcbf-save-size:disabled { opacity: .6; cursor: wait; }
.hcbf-auto-label { font-size: 12px; color: #58616b; }
#hcbf_gift_size_field {
    box-sizing: border-box;
    clear: both;
    width: 100%;
    margin: 0 0 24px !important;
    padding: 18px !important;
    border: 1px solid #bdcddd;
    border-left: 4px solid #1f3b5b;
    border-radius: 8px;
    background: #f1f6fb;
}
#hcbf_gift_size_field label {
    display: block;
    margin: 0 0 10px;
    color: #1f3b5b;
    font: 700 18px/1.4 Arial, Helvetica, sans-serif;
}
#hcbf_gift_size_field .woocommerce-input-wrapper { display: block; width: 100%; }
#hcbf_gift_size {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 54px;
    height: auto;
    margin: 0;
    padding: 12px 44px 12px 14px;
    border: 2px solid #1f3b5b !important;
    border-radius: 6px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f3b5b' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    color: #172f4b;
    font: 400 16px/1.5 Arial, Helvetica, sans-serif;
    -webkit-appearance: none;
    appearance: none;
}
#hcbf_gift_size:focus { outline: 3px solid #86aed3; outline-offset: 2px; }
#hcbf_gift_size_field.woocommerce-invalid #hcbf_gift_size { border-color: #c70028 !important; }
#hcbf_gift_size_field .description {
    display: block !important;
    position: static;
    width: auto;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #435a74;
    font: 400 14px/1.5 Arial, Helvetica, sans-serif;
    opacity: 1;
    visibility: visible;
    transform: none;
}
#hcbf_gift_size_field .description::before { display: none; }
@media (max-width: 600px) {
    #hcbf_gift_size_field { padding: 14px !important; }
    #hcbf_gift_size_field label { font-size: 17px; }
    #hcbf-overlay { padding: 12px; }
    #hcbf-overlay .hcbf-dialog { max-width: 392px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
    #hcbf-overlay .hcbf-dialog-scroll { grid-template-columns: 1fr; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
    #hcbf-overlay .hcbf-art { justify-content: center; }
    #hcbf-overlay .hcbf-art img { width: 100%; max-height: 43vh; max-height: 43dvh; object-fit: contain; }
    #hcbf-overlay .hcbf-copy { padding: 20px; }
    #hcbf-overlay #hcbf-title { font-size: 32px; margin: 10px 0 12px; }
    #hcbf-overlay #hcbf-title br { display: none; }
    #hcbf-overlay #hcbf-intro { font-size: 16px; }
    #hcbf-overlay p { margin-bottom: 12px; }
    #hcbf-overlay .hcbf-secondary { padding-top: 10px; }
    .hcbf-cart-panel { padding: 16px; }
    .hcbf-cart-panel .hcbf-save-size { flex: 1 1 auto; }
}
@media (max-height: 480px) and (min-width: 601px) {
    #hcbf-overlay .hcbf-copy { padding: 22px; }
    #hcbf-overlay #hcbf-title { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    #hcbf-overlay *, .hcbf-cart-panel * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
