/*
 * Shared nav arrow chrome — reused by:
 *   - `IPT_Hover_Image_Carousel_Widget` (carousel prev/next)
 *   - `IPT_Background_Slideshow_Widget` (slideshow prev/next when Show Arrows = on)
 *
 * The arrow is a 40×40 circular white button with a chevron SVG inside,
 * absolutely positioned to its container's vertical center and pulled
 * 12px in from the relevant edge. Mirrors the original carousel arrow
 * styling — the carousel's CSS used to host these rules verbatim; they
 * were extracted here so any new widget can opt into the same visual
 * language without re-implementing.
 *
 * Markup contract (rendered identically by both widgets):
 *
 *   <button class="ipt-nav-arrow ipt-nav-arrow--prev" aria-label="Previous">
 *     <svg viewBox="0 0 24 24"><polyline points="15 18 9 12 15 6"></polyline></svg>
 *   </button>
 *   <button class="ipt-nav-arrow ipt-nav-arrow--next" aria-label="Next">
 *     <svg viewBox="0 0 24 24"><polyline points="9 6 15 12 9 18"></polyline></svg>
 *   </button>
 *
 * The `!important`s are inherited from the original carousel CSS — they
 * exist to outrank theme button resets (Blocksy, Astra, Generatepress
 * all set their own `button` background / border). Removing them would
 * risk visual regressions on those themes.
 */

.ipt-nav-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    line-height: 1 !important;
    font-size: 0 !important;
    color: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.ipt-nav-arrow svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #333 !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: block !important;
}

.ipt-nav-arrow--prev { left: 12px !important; }
.ipt-nav-arrow--next { right: 12px !important; }

.ipt-nav-arrow:hover:not(:disabled) {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

.ipt-nav-arrow:disabled {
    opacity: 0 !important;
    cursor: default !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

@media (max-width: 1024px) {
    .ipt-nav-arrow--prev { left: 8px !important; }
    .ipt-nav-arrow--next { right: 8px !important; }
}

@media (max-width: 767px) {
    .ipt-nav-arrow {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    .ipt-nav-arrow svg {
        width: 16px !important;
        height: 16px !important;
    }
}
