body.single-product .fpd-container {
    --fpd-primary-color: #292929 !important;
    --fpd-primary-fg-color: #ffffff !important;
    --fpd-secondary-color: #a65d00 !important;
    --fpd-secondary-fg-color: #ffffff !important;
    --fpd-btn-primary-color: #ffad32 !important;
    --fpd-btn-primary-text-color: #292929 !important;
    --fpd-text-color: #292929 !important;
    --fpd-mainbar-nav-color: #292929 !important;
    --fpd-actions-bar-bg-color: #f5f5f5 !important;
    --fpd-module-secondary-color: #fff5df !important;
    --fpd-module-secondary-text-color: #292929 !important;
}
.wwd-fpd-area-nav {
    box-sizing: border-box;
    background: #f5f5f5;
    border: 1px solid #a7a7a7;
    border-top: 4px solid #ffad32;
    padding: 14px 16px 16px;
    margin: 0 0 12px;
    color: #292929;
    clear: both;
    width: 100%;
}
.wwd-fpd-area-nav[hidden] { display: none !important; }
.wwd-fpd-area-nav .wwd-fpd-area-heading {
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}
.wwd-fpd-area-buttons { display:flex; flex-wrap:wrap; gap:10px; }
.wwd-fpd-area-nav .wwd-fpd-area-button {
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex:1 1 180px;
    min-width:0;
    min-height:48px;
    margin:0;
    padding:12px 20px;
    border:2px solid #8a8a8a;
    border-radius:3px;
    background:#fff;
    box-shadow:none;
    color:#292929;
    font:inherit;
    font-size:17px;
    font-weight:600;
    line-height:1.3;
    letter-spacing:normal;
    text-transform:none;
    white-space:normal;
    text-align:center;
    cursor:pointer;
}
.wwd-fpd-area-nav .wwd-fpd-area-button[aria-pressed="true"] {
    background:#ffad32;
    border-color:#a55e00;
    color:#292929;
    font-weight:800;
}
.wwd-fpd-area-nav .wwd-fpd-area-button:hover { border-color:#292929; }
.wwd-fpd-area-nav .wwd-fpd-area-button:focus-visible { outline:3px solid #005fcc; outline-offset:3px; }
.wwd-fpd-area-check { visibility:hidden; flex:0 0 1em; }
[aria-pressed="true"] > .wwd-fpd-area-check { visibility:visible; }
.wwd-fpd-area-ready .fpd-btn[data-action="previous-view"],
.wwd-fpd-area-ready .fpd-btn[data-action="next-view"],
.wwd-fpd-area-ready fpd-views-nav .fpd-view-prev,
.wwd-fpd-area-ready fpd-views-nav .fpd-view-next,
.wwd-fpd-area-ready:not(.wwd-fpd-dynamic-views) fpd-views-nav .fpd-show-views-grid { display:none !important; }
.wwd-fpd-area-ready:not(.wwd-fpd-dynamic-views) fpd-views-nav { background:transparent; box-shadow:none; }
/* Keep the native modal arrows legible against the black toolbar, including Additional CSS overrides. */
body.single-product .fpd-container fpd-actions-bar [data-pos="center"] .fpd-btn:is([data-action="previous-view"],[data-action="next-view"]) {
    background:#ffad32 !important;
    color:#292929 !important;
    border:1px solid #ffad32;
    border-radius:3px;
    padding:8px 12px;
    margin:2px 4px;
    min-height:40px;
}
body.single-product .fpd-container fpd-actions-bar [data-pos="center"] .fpd-btn:is([data-action="previous-view"],[data-action="next-view"]) :is(span,i) {
    background:transparent !important;
    color:#292929 !important;
}
body.single-product .fpd-container fpd-actions-bar [data-pos="center"] .fpd-btn:is([data-action="previous-view"],[data-action="next-view"]).fpd-disabled {
    background:#dedede !important;
    border-color:#dedede;
    opacity:.6;
}
@media (max-width:480px) {
    .wwd-fpd-area-nav { padding:12px; }
    .wwd-fpd-area-nav .wwd-fpd-area-button { flex-basis:calc(50% - 5px); font-size:16px; padding:10px 8px; }
}

/* The modal keeps FPD's native pager; name its surface and enlarge its controls. */
body.single-product .fpd-container fpd-views-nav .fpd-show-views-grid[data-wwd-area-title] {
    font-size:0;
    padding:8px 12px;
    min-height:44px;
    min-width:80px;
    background:#fff;
    color:#292929;
}
body.single-product .fpd-container fpd-views-nav .fpd-show-views-grid[data-wwd-area-title] > :is(i,.fpd-current-view,.fpd-total-views) { display:none; }
body.single-product .fpd-container fpd-views-nav .fpd-show-views-grid[data-wwd-area-title]::after {
    content:attr(data-wwd-area-title);
    font-size:16px;
    line-height:1.3;
    font-weight:700;
}
body.single-product .fpd-container fpd-views-nav :is(.fpd-view-prev,.fpd-view-next) {
    min-width:44px;
    min-height:44px;
    border-radius:3px;
    background:#ffad32;
    color:#292929 !important;
}
body.single-product .fpd-container fpd-views-nav :is(.fpd-view-prev,.fpd-view-next).fpd-disabled {
    background:#dedede;
    color:#555 !important;
}
body.single-product .fpd-container fpd-views-nav [role=button]:focus-visible { outline:3px solid #005fcc;outline-offset:2px; }

/* FPD reuses primary-fg for tool-panel surfaces, so keep it light. */
body.single-product .fpd-container fpd-main-bar { background:#fff !important; color:#292929 !important; }
body.single-product .fpd-container fpd-actions-bar { background:#f5f5f5 !important; color:#292929 !important; border-bottom:1px solid #a7a7a7; }
body.single-product .fpd-container fpd-actions-bar :is(.fpd-btn,.fpd-dropdown-btn) { color:#292929; }
body.single-product .fpd-container fpd-main-bar .fpd-navigation > .fpd-nav-item { color:#292929 !important; }
body.single-product .fpd-container fpd-main-bar .fpd-navigation > .fpd-nav-item .fpd-nav-icon::before { color:#292929 !important; }
