/* ------------------------------------------------------------------
   Product customizer polish
   Loaded on single product pages after the base single-product.css.
------------------------------------------------------------------ */
:root {
    --ss-blue: #2a74ed;
    --ss-ink: #111111;
    --ss-line: #e4e4e4;
}

/* Section info (i) pop-ups ---------------------------------------- */
.single-product-custom .custom-section-title .tooltip-icon.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 22px;
    height: 22px;
    margin-left: 2px;
    color: #8a8a8a;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
    transition: color .15s ease;
}

.single-product-custom .custom-section-title .tooltip-icon.tooltip-icon:hover,
.single-product-custom .custom-section-title .tooltip-icon.tooltip-icon.active,
.single-product-custom .custom-section-title .tooltip-icon.tooltip-icon:focus-visible {
    color: var(--ss-blue);
}

.single-product-custom .custom-section-title .tooltip-icon.tooltip-icon:focus-visible {
    box-shadow: 0 0 0 3px rgba(42, 116, 237, 0.25);
}

.single-product-custom .custom-section-title .tooltip-icon .tooltip-icon__svg {
    display: block;
    cursor: pointer;
}

.single-product-custom .custom-section-title .tooltip-icon.tooltip-icon .tooltip-content {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    transform: translateY(4px);
    width: max-content;
    max-width: min(320px, calc(100vw - 48px));
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--ss-ink);
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.22);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 30;
    text-align: left;
    cursor: default;
}

.single-product-custom .custom-section-title .tooltip-icon.tooltip-icon .tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 6px;
    border: 7px solid transparent;
    border-top-color: var(--ss-ink);
}

.single-product-custom .custom-section-title .tooltip-icon.tooltip-icon.active .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.single-product-custom .custom-section-title .tooltip-icon.tooltip-icon .tooltip-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color: #fff;
}

/* Hover-to-open on pointer devices; touch relies on tap (handled in JS). */
@media (hover: hover) {
    .single-product-custom .custom-section-title .tooltip-icon.tooltip-icon:hover .tooltip-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* On narrow screens anchor the pop-up to the left edge of the section instead of the icon. */
@media (max-width: 767px) {
    .single-product-custom .custom-section-title {
        position: relative;
    }
    .single-product-custom .custom-section-title .tooltip-icon.tooltip-icon {
        position: static;
    }
    .single-product-custom .custom-section-title .tooltip-icon.tooltip-icon .tooltip-content {
        left: 0;
        right: 0;
        max-width: none;
        width: auto;
    }
    .single-product-custom .custom-section-title .tooltip-icon.tooltip-icon .tooltip-content::after {
        left: 14px;
    }
}

/* Add-to-cart button keeps one line while its label swaps to "Adding to cart..." */
.single-product form.cart .single_add_to_cart_button {
    white-space: nowrap;
    transition: min-width 0s;
}
