/* Jinyu Novelty responsive identity lockup — Logo 2.1.1 */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

header .flex-shrink-0 {
    flex: 0 0 auto;
}

header.sticky .custom-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: none;
    max-height: 46px !important;
}

@media (max-width: 639px) {
    header.sticky .custom-logo {
        max-height: 40px !important;
    }
}

/* Lightweight contact hub: one entry point for WhatsApp and RFQ. */
.jinyu-contact-hub {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    color: #0f172a;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jinyu-contact-hub__launcher {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #ea580c;
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .24);
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.jinyu-contact-hub__launcher:hover {
    background: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .28);
}

.jinyu-contact-hub__launcher:focus-visible,
.jinyu-contact-hub__close:focus-visible,
.jinyu-contact-hub__action:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.jinyu-contact-hub__panel[hidden] {
    display: none !important;
}

.jinyu-contact-hub__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(348px, calc(100vw - 32px));
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
}

.jinyu-contact-hub__panel::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    transform: rotate(45deg);
}

.jinyu-contact-hub__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
}

.jinyu-contact-hub__close svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.jinyu-contact-hub__eyebrow {
    margin: 0 42px 5px 0;
    color: #ea580c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.jinyu-contact-hub__panel h2 {
    margin: 0 38px 8px 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.jinyu-contact-hub__panel > p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.jinyu-contact-hub__actions {
    display: grid;
    gap: 10px;
    margin-top: 17px;
}

.jinyu-contact-hub__action {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.jinyu-contact-hub__action:hover {
    transform: translateY(-1px);
}

.jinyu-contact-hub__action--whatsapp {
    background: #dcfce7;
    color: #166534;
}

.jinyu-contact-hub__action--whatsapp:hover {
    border-color: #86efac;
    background: #bbf7d0;
}

.jinyu-contact-hub__action--quote {
    background: #eff6ff;
    color: #1d4ed8;
}

.jinyu-contact-hub__action--quote:hover {
    border-color: #93c5fd;
    background: #dbeafe;
}

.jinyu-contact-hub__action svg {
    flex: 0 0 auto;
}

.jinyu-contact-hub__action span,
.jinyu-contact-hub__action strong,
.jinyu-contact-hub__action small {
    display: block;
}

.jinyu-contact-hub__action strong {
    font-size: 14px;
    line-height: 1.25;
}

.jinyu-contact-hub__action small {
    margin-top: 3px;
    color: #475569;
    font-size: 12px;
    line-height: 1.25;
}

.jinyu-contact-hub__panel .jinyu-contact-hub__note {
    margin-top: 14px;
    color: #64748b;
    font-size: 11px;
}

body.page-id-315 .jinyu-contact-hub,
body.woocommerce-cart .jinyu-contact-hub,
body.woocommerce-checkout .jinyu-contact-hub,
body.woocommerce-account .jinyu-contact-hub {
    display: none;
}

body.jinyu-commerce-controls-visible .jinyu-contact-hub,
body.jinyu-commerce-controls-visible #jinyu-cookie-settings-button {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 640px) {
    .jinyu-contact-hub {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .jinyu-contact-hub__launcher {
        width: 48px;
        min-height: 48px;
        padding: 0;
    }

    .jinyu-contact-hub__launcher span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .jinyu-contact-hub__panel {
        position: fixed;
        right: 10px;
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        width: calc(100vw - 20px);
        max-height: calc(100vh - 92px - env(safe-area-inset-bottom, 0px));
        padding: 19px;
        overflow-y: auto;
    }

    .jinyu-contact-hub__panel::after {
        right: 18px;
    }

    .jinyu-contact-hub__panel h2 {
        font-size: 20px;
    }

    #jinyu-cookie-settings-button {
        left: 8px !important;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        min-height: 36px !important;
        padding: 7px 9px !important;
        font-size: 11px !important;
    }

    body.single-product main {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .jinyu-contact-hub__launcher,
    .jinyu-contact-hub__action {
        transition: none;
    }
}
