/*
 * PidoGame single-product layouts for games, gift cards and in-game items.
 * Generated from the 1.8.38 monolith and maintained as an independent module.
 */

/* ========================================================================
   PidoGame 1.8.3 — game product hardening without visual redesign
   ======================================================================== */
.pido-game-title-wrap {
    padding-inline-start: 1rem;
}

.pido-game-title {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.55;
}

.pido-game-subtitle {
    margin-bottom: 0;
}

.pido-game-gallery-body {
    padding: 10px 0;
}

.pidogame-gallery-strip {
    display: flex;
    gap: .5rem;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: .75rem 1.25rem;
    scrollbar-width: thin;
    scroll-snap-type: inline proximity;
}

.pidogame-gallery-item {
    display: block;
    flex: 0 0 calc(20% - .4rem);
    height: 80px;
    overflow: hidden;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-card);
    background: var(--pido-surface-soft);
    opacity: .95;
    scroll-snap-align: start;
}

.pidogame-gallery-item:hover,
.pidogame-gallery-item:focus-visible {
    opacity: 1;
    outline: 2px solid var(--pido-primary);
    outline-color: color-mix(in srgb, var(--pido-primary) 60%, transparent);
    outline-offset: 2px;
}

.pidogame-gallery-item img,
.pido-game-featured-image,
.related-products-wrapper .related-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pido-game-meta-row,
.pido-game-attribute-row {
    gap: .75rem;
}

.pido-game-meta-values {
    display: flex;
    max-width: 68%;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
}

.pido-game-attribute-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.pido-variation-platform {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    padding-inline: 1rem;
    margin-bottom: .75rem;
}

.pido-device-icon {
    object-fit: contain;
}

.pido-game-price-wrap {
    min-width: 190px;
    margin-inline-start: auto;
    text-align: end;
}

.pido-game-price-wrap .price,
.pido-related-price .price {
    margin: 0;
    color: inherit;
}

.pido-game-price-wrap del,
.pido-related-price del {
    color: var(--pido-text-muted);
    opacity: .7;
}

.pido-game-price-wrap ins,
.pido-related-price ins {
    text-decoration: none;
}

.pido-required-field {
    color: var(--pido-danger, #dc2626);
}

.pido-field-help {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    margin-inline-start: .35rem;
    border: 1px solid var(--pido-border);
    border-radius: 50%;
    color: var(--pido-text-muted);
    cursor: help;
    font-size: var(--pido-font-size-xs, .8125rem);
    line-height: 1;
}

.pido-calculator-total {
    display: none;
    padding: 10px;
    border-radius: var(--pido-radius-control);
    background: var(--pido-primary);
    color: #fff;
    font-size: 14px;
    font-weight: var(--pido-font-weight-bold, 700);
}

.pido-calculator-total:not(:empty) {
    display: inline-block;
}

.related-products-wrapper .related-products-grid {
    row-gap: 2rem;
}

.related-products-wrapper .related-product-card {
    height: 100%;
}

.related-products-wrapper .related-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 56.25%;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-card);
    background: var(--pido-surface-soft);
}

.related-products-wrapper .related-thumb img {
    position: absolute;
    inset: 0;
}

.pido-related-product-actions {
    gap: .75rem;
}

html[data-pido-theme="dark"] .pidogame-gallery-item,
html[data-pido-theme="dark"] .related-products-wrapper .related-thumb,
html[data-pido-theme="dark"] .pido-game-product .bg-light,
html[data-pido-theme="dark"] .pido-game-product .bg-light-dark {
    border-color: var(--pido-border) !important;
    background: var(--pido-surface-soft) !important;
}

html[data-pido-theme="dark"] .pido-game-product :is(.text-gray-600, .text-gray-700, .text-gray-800, .text-gray-900, .text-dark) {
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] .pido-game-product :is(.text-muted, .text-gray-400) {
    color: var(--pido-text-muted) !important;
}

html[data-pido-theme="dark"] .pido-game-product .badge-light-dark,
html[data-pido-theme="dark"] .pido-game-product .badge-secondary {
    border-color: var(--pido-border);
    background: var(--pido-control-bg);
    color: var(--pido-text) !important;
}

@media (max-width: 991.98px) {
    .pido-game-main {
        padding-inline: .75rem !important;
        margin-top: 1rem;
    }

    .related-products-wrapper .related-products-grid > [class*="col-"] {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .pidogame-gallery-strip {
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: .75rem;
        scroll-snap-type: inline proximity;
    }

    .pidogame-gallery-item {
        flex-basis: 100px;
        height: 70px;
        scroll-snap-align: start;
    }

    .pido-game-product .accordion-body {
        padding-inline: .75rem;
    }

    .pido-game-price-wrap {
        width: 100%;
        min-width: 0;
        align-items: flex-start !important;
        margin-top: 1rem;
        margin-inline-start: 0;
        text-align: start;
    }

    .pido-game-product .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .pido-game-product .nav-tabs .nav-link {
        min-width: max-content;
    }
}

@media (max-width: 479.98px) {
    .pido-game-title-wrap {
        padding-inline: .25rem;
    }

    .pido-game-title {
        font-size: 1.4rem;
    }

    .pido-game-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .pido-game-meta-values {
        max-width: 100%;
    }

    .pido-related-product-actions {
        align-items: stretch !important;
        flex-direction: column;
    }

    .pido-related-product-actions .btn {
        width: 100%;
    }
}

.pido-game-excerpt {
    text-align: justify;
}


.pido-product-content-overflow {
    overflow-x: hidden;
}


/* ========================================================================
   PidoGame 1.8.4 — game purchase ordering, full lightbox and embed fixes
   ======================================================================== */
/* Raw iframe embeds (including Aparat/YouTube pasted as code) must use the
   complete editorial-content width and remain centered. */
.pido-rich-content iframe,
.single-post .entry-content iframe,
.woocommerce-Tabs-panel iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0;
    aspect-ratio: 16 / 9;
    height: auto !important;
    margin: 1.5rem auto !important;
    border: 0;
    border-radius: var(--pido-radius-card);
}

.pido-rich-content :is(.aparat-player, .aparat-responsive, .embed-responsive, [class*="aparat"]),
.single-post .entry-content :is(.aparat-player, .aparat-responsive, .embed-responsive, [class*="aparat"]),
.woocommerce-Tabs-panel :is(.aparat-player, .aparat-responsive, .embed-responsive, [class*="aparat"]) {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
}

.pido-game-gallery-section {
    width: 100%;
    margin-top: .25rem;
}

.pido-game-gallery-section .pido-game-gallery-body {
    padding: .5rem;
}

.pido-game-gallery-section .pidogame-gallery-strip {
    gap: 1rem;
    padding: 1rem;
}

.pido-game-gallery-section .pidogame-gallery-item {
    position: relative;
    flex: 0 0 230px;
    height: 132px;
}

.pidogame-gallery-item--trailer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / 58%));
    pointer-events: none;
}

.pido-gallery-trailer-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--pido-surface-soft);
}

.pido-gallery-trailer-play {
    position: absolute;
    inset-block-start: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 50%;
    background: rgb(0 0 0 / 58%);
    color: #fff;
    transform: translate(-50%, -50%);
}

.pido-gallery-trailer-label {
    position: absolute;
    inset-block-end: .65rem;
    inset-inline-start: .75rem;
    z-index: 2;
    color: #fff;
    font-size: .86rem;
    font-weight: var(--pido-font-weight-bold, 700);
}

.pido-gallery-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #fff;
}

.pido-gallery-dialog::backdrop {
    background: rgb(0 0 0 / 92%);
}

.pido-gallery-dialog-stage {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 70px 74px 58px;
}

.pido-gallery-dialog-media {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.pido-gallery-dialog-image,
.pido-gallery-dialog-video,
.pido-gallery-dialog-frame {
    display: block;
    width: auto;
    max-width: min(92vw, 1440px);
    height: auto;
    max-height: calc(100vh - 130px);
    margin: auto;
    border: 0;
    border-radius: var(--pido-radius-control);
    object-fit: contain;
}

.pido-gallery-dialog-frame,
.pido-gallery-dialog-video {
    width: min(92vw, 1280px);
    aspect-ratio: 16 / 9;
}

.pido-gallery-dialog-control {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 38%);
    border-radius: 50%;
    background: rgb(0 0 0 / 48%);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.pido-gallery-dialog-control:hover,
.pido-gallery-dialog-control:focus-visible {
    border-color: #fff;
    background: rgb(0 0 0 / 72%);
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.pido-gallery-dialog-close {
    inset-block-start: 18px;
    inset-inline-end: 22px;
}

.pido-gallery-dialog-prev,
.pido-gallery-dialog-next {
    inset-block-start: 50%;
    transform: translateY(-50%);
}

.pido-gallery-dialog-prev {
    inset-inline-start: 20px;
}

.pido-gallery-dialog-next {
    inset-inline-end: 20px;
}

.pido-gallery-dialog-counter {
    position: absolute;
    inset-block-end: 18px;
    left: 50%;
    padding: .35rem .7rem;
    border-radius: var(--pido-radius-control);
    background: rgb(0 0 0 / 48%);
    color: #fff;
    transform: translateX(-50%);
}

.pido-game-purchase-accordion {
    display: grid;
    gap: 1rem;
}

.pido-game-purchase-accordion > .accordion-item,
.pido-game-purchase-accordion > .accordion-item:not(:first-of-type) {
    overflow: hidden;
    border: 1px solid var(--pido-border) !important;
    border-radius: var(--pido-radius-card) !important;
}

.pido-game-purchase-accordion .accordion-button,
.pido-game-purchase-accordion .accordion-button.collapsed {
    border-radius: calc(var(--pido-radius-card) - 1px) !important;
}

.pido-game-purchase-accordion .accordion-button:not(.collapsed) {
    border-end-start-radius: 0 !important;
    border-end-end-radius: 0 !important;
}

.pido-game-purchase-accordion .accordion-collapse {
    border: 0;
}

.pido-variation-platform {
    min-height: 0;
    justify-content: flex-start;
}

.pido-purchase-price {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .55rem;
}

.pido-purchase-price-regular {
    color: var(--pido-text-muted);
    opacity: .72;
}

.pido-purchase-price-current {
    text-decoration: none;
}

ins.pido-purchase-price-current {
    padding: .3rem .55rem;
    border-radius: var(--pido-radius-control);
    background: var(--bs-success, #50cd89);
    color: #fff;
}

.pido-sale-remaining {
    max-width: 100%;
    white-space: normal;
    line-height: 1.7;
    text-align: center;
}

.pido-game-attribute-values {
    text-align: end;
}

.pido-product-attribute-link {
    color: var(--pido-primary) !important;
    font-weight: var(--pido-font-weight-bold, 700);
    text-decoration: none;
}

.pido-product-attribute-link:hover,
.pido-product-attribute-link:focus-visible {
    text-decoration: underline;
}

html[data-pido-theme="dark"] .pido-game-purchase-accordion > .accordion-item {
    border-color: var(--pido-border) !important;
    background: var(--pido-surface);
}

@media (max-width: 767.98px) {
    .pido-game-gallery-section .pidogame-gallery-strip {
        gap: .75rem;
        padding: .75rem;
    }

    .pido-game-gallery-section .pidogame-gallery-item {
        flex-basis: 155px;
        height: 92px;
    }

    .pido-gallery-dialog-stage {
        padding: 62px 12px 54px;
    }

    .pido-gallery-dialog-control {
        width: 42px;
        height: 42px;
    }

    .pido-gallery-dialog-prev {
        inset-inline-start: 8px;
    }

    .pido-gallery-dialog-next {
        inset-inline-end: 8px;
    }

    .pido-gallery-dialog-image,
    .pido-gallery-dialog-video,
    .pido-gallery-dialog-frame {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 126px);
    }

    .pido-gallery-dialog-frame,
    .pido-gallery-dialog-video {
        width: calc(100vw - 24px);
    }

    .pido-purchase-price {
        justify-content: flex-start;
    }
}

/* ========================================================================
   PidoGame 1.8.5 — game product content, sale schedule and dark-mode polish
   ======================================================================== */
.pido-game-featured-image {
    margin-bottom: 0;
}

.pido-game-summary-content {
    padding-top: 1.25rem;
}

.pido-game-excerpt-wrap {
    padding-top: 0;
}

.pido-game-meta-row,
.pido-game-attribute-row {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
}

.pido-game-meta-row > :first-child,
.pido-game-attribute-row > :first-child {
    flex: 0 0 auto;
    white-space: nowrap;
}

.pido-game-meta-values,
.pido-game-attribute-values {
    min-width: 0;
    max-width: 68%;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    white-space: normal;
    text-align: end;
}

/* Gallery thumbnails are plain rounded media; no card-like border/background. */
.pido-game-gallery-section .pidogame-gallery-item {
    border: 0;
    background: transparent;
}

.pido-game-gallery-section .pidogame-gallery-item img,
.pido-game-gallery-section .pido-gallery-trailer-placeholder {
    border-radius: var(--pido-radius-card);
}

.pido-purchase-discount-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .25rem .55rem;
    border: 1px solid color-mix(in srgb, var(--pido-danger) 28%, transparent);
    border-radius: var(--pido-radius-control);
    background: color-mix(in srgb, var(--pido-danger) 10%, var(--pido-surface));
    color: var(--pido-danger);
    font-size: var(--pido-font-size-xs, .8125rem);
    font-weight: var(--pido-font-weight-extrabold, 800);
    line-height: 1.35;
    white-space: nowrap;
}

/* Active tabs visually join the divider below them. */
.pido-game-tabs {
    align-items: flex-end;
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--pido-border);
}

.pido-game-tabs .nav-link {
    margin-bottom: -1px;
    border-end-start-radius: 0 !important;
    border-end-end-radius: 0 !important;
}

.pido-game-tabs .nav-link.active {
    border-bottom-color: var(--pido-surface) !important;
    border-end-start-radius: 0 !important;
    border-end-end-radius: 0 !important;
}

.pido-game-tab-content {
    padding-top: 1.5rem;
}

.pido-game-comments-pane {
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.pido-game-comment-form-wrap,
.pido-game-comments-list,
.pido-game-comments-items,
.pido-game-comment-form {
    width: 100%;
    margin-inline: 0;
}

.pido-game-comments-pane .row {
    --bs-gutter-x: 0;
}

/* Game-page notice uses theme tokens in both themes. */
.pido-game-product .gift-notice {
    border-color: color-mix(in srgb, var(--pido-warning) 48%, var(--pido-border)) !important;
    background: color-mix(in srgb, var(--pido-warning) 9%, var(--pido-surface)) !important;
    color: var(--pido-text);
}

.pido-game-product .gift-notice :is(h1, h2, h3, h4, h5, h6, p, li, span) {
    color: inherit !important;
}

/* Complete dark-mode scope for the game product before moving to another page. */
html[data-pido-theme="dark"] .pido-game-product :is(
    .pido-game-details,
    .pido-game-details-body,
    .pido-game-tab-content,
    .pido-game-comments-pane,
    .pido-product-comment,
    .pido-game-purchase-accordion .accordion-body,
    .pido-game-purchase-accordion .accordion-button,
    .pido-game-purchase-accordion .accordion-collapse,
    .pido-game-product .wrap_open_fields,
    .pido-game-product .reply-alert
) {
    border-color: var(--pido-border) !important;
    background-color: var(--pido-surface) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] .pido-game-product :is(
    .pido-game-purchase-accordion .accordion-button:not(.collapsed),
    .pido-game-tabs .nav-link.active,
    .pido-game-product .bg-light,
    .pido-game-product .bg-light-dark,
    .pido-game-product .border-dashed,
    .pido-game-product .form-control,
    .pido-game-product .form-select,
    .pido-product-comment
) {
    border-color: var(--pido-border) !important;
    background-color: var(--pido-surface-soft) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] .pido-game-product .pido-game-tabs {
    border-color: var(--pido-border) !important;
    background: var(--pido-surface) !important;
}

html[data-pido-theme="dark"] .pido-game-product .pido-game-tabs .nav-link {
    border-color: transparent !important;
    background: transparent !important;
    color: var(--pido-text-muted) !important;
}

html[data-pido-theme="dark"] .pido-game-product .pido-game-tabs .nav-link.active {
    border-color: var(--pido-border) var(--pido-border) var(--pido-surface-soft) !important;
    background: var(--pido-surface-soft) !important;
    color: var(--pido-primary) !important;
}

html[data-pido-theme="dark"] .pido-game-product .pido-region-selector .form-check-input {
    border-color: var(--pido-border) !important;
    background-color: var(--pido-control-bg) !important;
}

html[data-pido-theme="dark"] .pido-game-product .pido-region-selector .form-check-input:checked {
    border-color: var(--pido-success) !important;
    background-color: var(--pido-success) !important;
}

html[data-pido-theme="dark"] .pido-game-product .pido-region-selector .form-check-label,
html[data-pido-theme="dark"] .pido-game-product .rating-label,
html[data-pido-theme="dark"] .pido-game-product .comment-content {
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] .pido-game-product .gift-notice {
    border-color: color-mix(in srgb, var(--pido-warning) 42%, var(--pido-border)) !important;
    background: color-mix(in srgb, var(--pido-warning) 13%, var(--pido-surface)) !important;
}

html[data-pido-theme="dark"] .pido-game-product .pido-purchase-discount-badge {
    border-color: color-mix(in srgb, var(--pido-danger) 38%, var(--pido-border));
    background: color-mix(in srgb, var(--pido-danger) 15%, var(--pido-surface));
}

html[data-pido-theme="dark"] .pido-game-product :is(input, textarea, select)::placeholder {
    color: var(--pido-text-muted) !important;
    opacity: .8;
}

@media (max-width: 479.98px) {
    .pido-game-meta-row,
    .pido-game-attribute-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .pido-game-meta-values,
    .pido-game-attribute-values {
        max-width: 64%;
    }

    .pido-game-comments-pane {
        padding-inline: .75rem;
    }

    .pido-game-tab-content {
        padding-top: 1rem;
    }
}


/* ========================================================================
   PidoGame 1.8.6 — shared product UI, comments and dark-mode consistency
   ======================================================================== */
/* Shared single-product surface contract for game, gift-card and item pages. */
.pido-product-page {
    width: 100%;
    min-width: 0;
    background: transparent;
    color: var(--pido-text);
}

.pido-product-tabs-card {
    overflow: hidden;
}

.pido-product-tabs-body {
    min-width: 0;
}

.pido-product-tabs {
    align-items: flex-end;
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--pido-border) !important;
    box-shadow: none !important;
}

.pido-product-tabs .nav-link {
    margin-bottom: -1px;
    border-bottom-width: 1px !important;
    border-end-start-radius: 0 !important;
    border-end-end-radius: 0 !important;
}

.pido-product-tabs .nav-link.active {
    border-bottom-color: var(--pido-surface) !important;
    border-end-start-radius: 0 !important;
    border-end-end-radius: 0 !important;
}

.pido-product-tab-content {
    min-width: 0;
    padding-top: 1.25rem;
}

.pido-product-tab-pane {
    min-width: 0;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

/* Product notices use the design tokens instead of legacy light-only helpers. */
.pido-product-notice,
.pido-product-page .gift-notice {
    border-color: color-mix(in srgb, var(--pido-warning) 52%, var(--pido-border)) !important;
    border-inline-start: 3px solid var(--pido-warning) !important;
    background: color-mix(in srgb, var(--pido-warning) 12%, var(--pido-surface)) !important;
    color: var(--pido-text) !important;
}

.pido-product-notice :is(h1, h2, h3, h4, h5, h6, p, li),
.pido-product-page .gift-notice :is(h1, h2, h3, h4, h5, h6, p, li) {
    color: inherit !important;
}

.pido-product-notice a,
.pido-product-page .gift-notice a {
    color: var(--pido-primary) !important;
    font-weight: var(--pido-font-weight-bold, 700);
    text-decoration: none;
}

.pido-product-notice a:hover,
.pido-product-notice a:focus-visible,
.pido-product-page .gift-notice a:hover,
.pido-product-page .gift-notice a:focus-visible {
    color: var(--pido-primary) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Danger badges must retain readable contrast inside inherited-color notices. */
.pido-product-page .badge-danger,
.pido-product-notice .badge-danger,
.pido-product-page .gift-notice .badge-danger {
    color: #fff !important;
}

/* Purchase prices: reduce the sale price slightly and strengthen the percentage. */
.pido-game-price-wrap .pido-purchase-price {
    font-size: 1rem;
}

.pido-purchase-price-current {
    font-size: 1.02rem;
    line-height: 1.55;
}

.pido-purchase-price-regular {
    font-size: .92rem;
    line-height: 1.55;
}

.pido-purchase-discount-badge {
    min-height: 32px;
    padding: .3rem .62rem;
    font-size: .9rem;
    line-height: 1.3;
}

/* Opened purchase fields remain part of the same option surface. */
.pido-purchase-option {
    align-items: center;
    background: var(--pido-surface-soft) !important;
}

.pido-purchase-fields {
    min-width: 0;
    background: transparent !important;
    color: var(--pido-text) !important;
}

.pido-purchase-fields .pido-extra-fields-form {
    width: 100%;
    min-width: 0;
}

/* Mouse hover only darkens gallery media; keyboard focus remains visible. */
.pidogame-gallery-item:hover {
    outline: 0 !important;
    outline-offset: 0 !important;
}

.pidogame-gallery-item img,
.pidogame-gallery-item .pido-gallery-trailer-placeholder {
    transition: filter .16s ease;
}

.pidogame-gallery-item:hover img,
.pidogame-gallery-item:hover .pido-gallery-trailer-placeholder {
    filter: brightness(.9);
}

.pidogame-gallery-item:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--pido-primary) 72%, transparent);
    outline-offset: 3px;
}

/* Comments use the same content measure as the description pane. */
.pido-product-comments-pane,
.pido-game-comments-pane {
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.pido-product-comment-form-section {
    margin-top: 1.75rem;
}

.pido-product-comments-section {
    margin-top: 3rem;
}

.pido-game-comment-form-wrap,
.pido-game-comments-list,
.pido-game-comments-items,
.pido-game-comment-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
}

.pido-comment-identity-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.pido-comment-identity-fields > *,
.pido-game-comment-form .fv-row,
.pido-game-comment-form .form-control {
    min-width: 0;
}

.pido-game-comment-form .form-control {
    width: 100%;
}

.pido-product-comment {
    border-width: 1px !important;
}

.pido-product-comment--staff {
    border-width: 1px !important;
    background: color-mix(in srgb, var(--pido-primary) 3%, var(--pido-surface)) !important;
}

.pido-product-comment .comment-content {
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.pido-product-comment .comment-content > :first-child {
    margin-top: 0;
}

.pido-product-comment .comment-content > :last-child {
    margin-bottom: 0;
}

.pido-product-comment .comment-content p {
    margin-bottom: .85rem;
    line-height: 2;
}

/* The section column itself must stay transparent; only its rounded card is a surface. */
.pido-game-details {
    border: 0 !important;
    background: transparent !important;
}

.pido-game-details > .card,
.pido-product-tabs-card {
    border-radius: var(--pido-radius-card) !important;
}

html[data-pido-theme="dark"] .pido-product-page {
    background: transparent !important;
}

html[data-pido-theme="dark"] .pido-game-details {
    border: 0 !important;
    background: transparent !important;
}

html[data-pido-theme="dark"] .pido-product-tabs-card,
html[data-pido-theme="dark"] .pido-product-tabs-body,
html[data-pido-theme="dark"] .pido-product-tab-content,
html[data-pido-theme="dark"] .pido-product-tab-pane {
    border-color: var(--pido-border) !important;
    background: var(--pido-surface) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] .pido-product-tabs {
    border-color: var(--pido-border) !important;
    background: var(--pido-surface) !important;
}

html[data-pido-theme="dark"] .pido-product-tabs .nav-link {
    border-color: transparent !important;
    background: transparent !important;
    color: var(--pido-text-muted) !important;
}

html[data-pido-theme="dark"] .pido-product-tabs .nav-link.active {
    border-color: var(--pido-border) var(--pido-border) var(--pido-surface) !important;
    background: var(--pido-surface) !important;
    color: var(--pido-primary) !important;
}

html[data-pido-theme="dark"] .pido-product-notice,
html[data-pido-theme="dark"] .pido-product-page .gift-notice {
    border-color: color-mix(in srgb, var(--pido-warning) 50%, var(--pido-border)) !important;
    border-inline-start-color: var(--pido-warning) !important;
    background: color-mix(in srgb, var(--pido-warning) 16%, var(--pido-surface)) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] .pido-product-notice a,
html[data-pido-theme="dark"] .pido-product-page .gift-notice a {
    color: var(--pido-primary) !important;
}

html[data-pido-theme="dark"] .pido-purchase-option {
    border-color: var(--pido-border) !important;
    background: var(--pido-surface-soft) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] .pido-purchase-fields,
html[data-pido-theme="dark"] .pido-purchase-fields .pido-extra-fields-form {
    border-color: transparent !important;
    background: transparent !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] .pido-product-comment--staff {
    border-color: color-mix(in srgb, var(--pido-primary) 72%, var(--pido-border)) !important;
    background: color-mix(in srgb, var(--pido-primary) 7%, var(--pido-surface)) !important;
}

@media (max-width: 767.98px) {
    .pido-product-tab-pane,
    .pido-product-comments-pane,
    .pido-game-comments-pane {
        padding-inline: 1rem;
    }

    .pido-product-comment-form-section {
        margin-top: 1.25rem;
    }

    .pido-product-comments-section {
        margin-top: 2.25rem;
    }
}

@media (max-width: 575.98px) {
    .pido-comment-identity-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .pido-product-tab-pane,
    .pido-product-comments-pane,
    .pido-game-comments-pane {
        padding-inline: .75rem;
    }

    .pido-purchase-price-current {
        font-size: .98rem;
    }

    .pido-purchase-discount-badge {
        font-size: .85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pidogame-gallery-item img,
    .pidogame-gallery-item .pido-gallery-trailer-placeholder {
        transition: none;
    }
}

/* High-specificity corrections for legacy 1.8.5 dark-mode selectors. */
html[data-pido-theme="dark"] .pido-game-product .pido-game-details {
    border: 0 !important;
    background: transparent !important;
}

html[data-pido-theme="dark"] .pido-game-product .pido-purchase-option .wrap_open_fields.pido-purchase-fields {
    border-color: transparent !important;
    background: transparent !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] .pido-game-product .pido-game-tabs.pido-product-tabs .nav-link.active {
    border-color: var(--pido-border) var(--pido-border) var(--pido-surface) !important;
    background: var(--pido-surface) !important;
    color: var(--pido-primary) !important;
}

/* ========================================================================
   PidoGame 1.8.9 — stable product grid and shared product surfaces
   ======================================================================== */
/* Keep the existing Bootstrap/container contract. Rows must retain their
   native auto width; assigning width:100% to a row adds its negative gutters
   to the total width and causes horizontal overflow on desktop and mobile. */
.pido-product-shell,
.pido-product-page--game,
.pido-game-gallery-section,
.pido-game-details,
.pido-product-details,
.pido-product-tabs-card,
.pido-product-page--game .related-products-wrapper {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pido-product-shell {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
}

.pido-game-layout {
    min-width: 0;
}

.pido-game-layout > [class*="col-"],
.pido-game-main,
.pido-game-main > .row,
.pido-purchase-shell,
.pido-purchase-option {
    min-width: 0;
}

/* The purchase and summary columns use Bootstrap's original gutters only.
   Do not reuse the archive-card .pido-product-column flex utility here. */
.pido-game-main {
    padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5) !important;
}

/* Purchase fields stay compact without creating a fixed-width overflow. */
@media (min-width: 1200px) {
    .pido-game-product .pido-purchase-fields {
        flex: 0 1 360px !important;
        width: min(100%, 360px);
        max-width: 360px;
        margin-inline-end: 1rem !important;
    }

    .pido-game-product .pido-purchase-fields .pido-extra-fields-form {
        width: 100%;
        max-width: 360px;
    }
}

.pido-game-product .pido-purchase-field {
    margin-bottom: .85rem !important;
}

.pido-game-product .pido-purchase-field > label {
    margin-bottom: .4rem !important;
    font-size: .88rem;
    line-height: 1.7;
}

.pido-game-product .pido-purchase-fields :is(.form-control, .form-select) {
    min-height: 42px;
    padding-block: .5rem;
    padding-inline: .75rem;
}

.pido-game-product .pido-purchase-fields textarea.form-control {
    min-height: 96px;
}

.pido-game-product .pido-purchase-fields .btn[type="submit"] {
    min-height: 42px;
    padding-block: .55rem;
}

/* Shared tabs preserve the native product width and rounded card surface. */
.pido-product-details {
    margin-top: 1rem;
    border: 0 !important;
    background: transparent !important;
}

.pido-product-tabs-card {
    width: 100%;
    overflow: hidden;
    border-radius: var(--pido-radius-card) !important;
}

.pido-product-tabs-body {
    min-width: 0;
    padding: 1.15rem .5rem 1.35rem !important;
}

.pido-product-tabs {
    align-items: flex-end;
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--pido-border) !important;
    box-shadow: none !important;
}

.pido-product-tabs .nav-link {
    margin-bottom: -1px;
    border-bottom-width: 1px !important;
    border-end-start-radius: 0 !important;
    border-end-end-radius: 0 !important;
}

.pido-product-tabs .nav-link.active {
    border-bottom-color: var(--pido-surface) !important;
}

.pido-product-tab-content {
    min-width: 0;
    padding-top: 1rem;
}

.pido-product-tab-pane,
.pido-product-comments-pane,
.pido-game-comments-pane {
    min-width: 0;
    padding-inline: clamp(.625rem, 1vw, 1rem) !important;
}

/* Editorial links retain the primary brand color in both themes. */
.pido-rich-content a:not(.btn):not(.button):not(.badge),
.single-post .entry-content a:not(.btn):not(.button):not(.badge),
.woocommerce-Tabs-panel a:not(.btn):not(.button):not(.badge) {
    color: var(--pido-primary) !important;
    text-decoration-color: rgba(var(--pido-primary-rgb), .45);
    text-underline-offset: 3px;
}

.pido-rich-content a:not(.btn):not(.button):not(.badge):hover,
.pido-rich-content a:not(.btn):not(.button):not(.badge):focus-visible,
.single-post .entry-content a:not(.btn):not(.button):not(.badge):hover,
.single-post .entry-content a:not(.btn):not(.button):not(.badge):focus-visible,
.woocommerce-Tabs-panel a:not(.btn):not(.button):not(.badge):hover,
.woocommerce-Tabs-panel a:not(.btn):not(.button):not(.badge):focus-visible {
    color: var(--pido-primary) !important;
    text-decoration-thickness: 2px;
}

/* The game warning remains in the purchase column, without an outer card. */
.pido-game-notice-section,
.pido-game-purchase-notice {
    width: 100%;
    min-width: 0;
}

.pido-product-page .pido-product-notice.pido-product-notice--warning,
.pido-product-page .gift-notice.pido-product-notice {
    margin-inline: 0;
    border: 1px dashed var(--pido-warning-border) !important;
    border-inline-start-width: 3px !important;
    background-color: var(--pido-warning-surface) !important;
    color: var(--pido-warning-text) !important;
}

.pido-product-notice__title {
    margin-bottom: .5rem;
    color: var(--pido-text) !important;
}

.pido-product-notice__content {
    color: var(--pido-text-muted) !important;
    line-height: 2;
}

.pido-product-notice__content :is(p, li, span) {
    color: inherit !important;
}

.pido-product-notice__content :is(strong, b) {
    color: var(--pido-text) !important;
}

.pido-product-notice__content li::marker {
    color: var(--pido-text-muted);
}

.pido-product-notice a,
.pido-product-page .gift-notice a {
    color: var(--pido-primary) !important;
    font-weight: var(--pido-font-weight-bold, 700);
}

.pido-product-page .badge-danger,
.pido-product-notice .badge-danger,
.pido-product-page .gift-notice .badge-danger {
    color: #fff !important;
}

/* Quieter but visible product rating status. */
.pido-game-rating-footer {
    min-height: 56px;
    border-top: 1px solid var(--pido-border) !important;
    background-color: var(--pido-surface-soft) !important;
    color: var(--pido-text-muted) !important;
}

.pido-game-rating-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1.2;
    color: inherit !important;
}

.pido-game-rating-value .fs-6 {
    font-size: var(--pido-font-size-xs, .8125rem) !important;
}

.pido-game-rating-empty {
    color: var(--pido-text-muted) !important;
}

.pido-game-product .pido-game-rating-footer--success {
    border-color: rgba(32, 199, 122, .30) !important;
    background-color: rgba(32, 199, 122, .16) !important;
    color: #137a50 !important;
}

.pido-game-product .pido-game-rating-footer--warning {
    border-color: rgba(255, 176, 32, .34) !important;
    background-color: rgba(255, 176, 32, .16) !important;
    color: #855908 !important;
}

.pido-game-product .pido-game-rating-footer--danger {
    border-color: rgba(239, 71, 111, .30) !important;
    background-color: rgba(239, 71, 111, .14) !important;
    color: #a92d4e !important;
}

/* Staff comments must remain distinguishable even when the original comment
   was posted with an administrator email but without a stored user_id. */
.pido-product-page article.pido-product-comment.pido-product-comment--staff {
    border: 1px dashed var(--pido-primary) !important;
    background-color: rgba(var(--pido-primary-rgb), .04) !important;
}

/* Gallery scrollbar follows the active surface rather than browser white. */
.pido-game-gallery-section .pidogame-gallery-strip {
    scrollbar-color: var(--pido-surface-strong) transparent;
}

.pido-game-gallery-section .pidogame-gallery-strip::-webkit-scrollbar {
    height: 8px;
}

.pido-game-gallery-section .pidogame-gallery-strip::-webkit-scrollbar-track {
    background: transparent;
}

.pido-game-gallery-section .pidogame-gallery-strip::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--pido-surface-strong);
    background-clip: padding-box;
}

/* Dark mode: explicit surfaces avoid legacy utility classes winning through
   specificity or unsupported color-mix fallbacks. */
html[data-pido-theme="dark"] body.pido-theme .pido-product-page .pido-product-notice.pido-product-notice--warning,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page .gift-notice.pido-product-notice {
    border-color: var(--pido-warning-border) !important;
    background-color: var(--pido-warning-surface) !important;
    color: var(--pido-warning-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-tabs-card,
html[data-pido-theme="dark"] body.pido-theme .pido-product-tabs-body,
html[data-pido-theme="dark"] body.pido-theme .pido-product-tab-content,
html[data-pido-theme="dark"] body.pido-theme .pido-product-tab-pane {
    border-color: var(--pido-border) !important;
    background-color: var(--pido-surface) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-tabs .nav-link {
    border-color: transparent !important;
    background-color: transparent !important;
    color: var(--pido-text-muted) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-tabs .nav-link:not(.active):hover,
html[data-pido-theme="dark"] body.pido-theme .pido-product-tabs .nav-link:not(.active):focus-visible {
    border-color: transparent !important;
    background-color: var(--pido-control-hover) !important;
    color: var(--pido-primary) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-tabs .nav-link.active,
html[data-pido-theme="dark"] body.pido-theme .pido-product-tabs .nav-link.active:hover,
html[data-pido-theme="dark"] body.pido-theme .pido-product-tabs .nav-link.active:focus-visible {
    border-color: var(--pido-border) var(--pido-border) var(--pido-surface-soft) !important;
    background-color: var(--pido-surface-soft) !important;
    color: var(--pido-primary) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-game-product .pido-game-rating-footer--success {
    background-color: rgba(32, 199, 122, .22) !important;
    color: #7be2b4 !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-game-product .pido-game-rating-footer--warning {
    background-color: rgba(255, 176, 32, .21) !important;
    color: #f3cb75 !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-game-product .pido-game-rating-footer--danger {
    background-color: rgba(239, 71, 111, .20) !important;
    color: #f494aa !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page article.pido-product-comment.pido-product-comment--staff {
    border: 1px dashed #009ef7 !important;
    background-color: rgba(var(--pido-primary-rgb), .09) !important;
}

html[data-pido-theme="dark"] .pido-game-gallery-section .pidogame-gallery-strip {
    scrollbar-color: var(--pido-surface-strong) var(--pido-page-bg);
}

html[data-pido-theme="dark"] .pido-game-gallery-section .pidogame-gallery-strip::-webkit-scrollbar-track {
    background: var(--pido-page-bg);
}

html[data-pido-theme="dark"] .pido-game-gallery-section .pidogame-gallery-strip::-webkit-scrollbar-thumb {
    background: var(--pido-surface-strong);
    background-clip: padding-box;
}

@media (max-width: 1199.98px) {
    .pido-game-product .pido-purchase-fields,
    .pido-game-product .pido-purchase-fields .pido-extra-fields-form {
        width: 100%;
        max-width: 100%;
        margin-inline-end: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .pido-product-tabs-body {
        padding: .85rem .375rem 1rem !important;
    }

    .pido-product-tab-pane,
    .pido-product-comments-pane,
    .pido-game-comments-pane {
        padding-inline: .5rem !important;
    }

    .pido-game-summary-content {
        padding-inline: .75rem !important;
    }

    .pido-game-rating-value {
        font-size: 1.25rem;
    }
}

/* ========================================================================
   PidoGame 1.8.10 — purchase alignment and dark feedback surfaces
   ======================================================================== */
/* A purchase card is already inside the Bootstrap product column. A nested
   .row cancels the column gutter and lets the card border protrude beyond the
   summary card. This neutral block keeps every purchase surface on the same
   vertical edges as the product header and summary column. */
.pido-game-product .pido-purchase-block {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
}

.pido-game-product .pido-purchase-block > .pido-purchase-shell {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

/* SweetAlert feedback must use the same theme surfaces as the product page. */
html[data-pido-theme="dark"] body.pido-theme .swal2-popup {
    border: 1px solid var(--pido-border) !important;
    border-radius: var(--pido-radius-card) !important;
    background-color: var(--pido-surface) !important;
    color: var(--pido-text) !important;
    box-shadow: none !important;
}

html[data-pido-theme="dark"] body.pido-theme .swal2-title,
html[data-pido-theme="dark"] body.pido-theme .swal2-html-container,
html[data-pido-theme="dark"] body.pido-theme .swal2-content {
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme .swal2-icon.swal2-success {
    border-color: rgba(32, 199, 122, .42) !important;
    color: var(--pido-success) !important;
}

html[data-pido-theme="dark"] body.pido-theme .swal2-success-circular-line-left,
html[data-pido-theme="dark"] body.pido-theme .swal2-success-circular-line-right,
html[data-pido-theme="dark"] body.pido-theme .swal2-success-fix {
    background-color: var(--pido-surface) !important;
}

html[data-pido-theme="dark"] body.pido-theme .swal2-success-line-tip,
html[data-pido-theme="dark"] body.pido-theme .swal2-success-line-long {
    background-color: var(--pido-success) !important;
}

html[data-pido-theme="dark"] body.pido-theme .swal2-popup .swal2-cancel.btn-light {
    border: 1px solid var(--pido-border) !important;
    background-color: var(--pido-control-bg) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme .swal2-popup .swal2-cancel.btn-light:hover,
html[data-pido-theme="dark"] body.pido-theme .swal2-popup .swal2-cancel.btn-light:focus-visible {
    background-color: var(--pido-control-hover) !important;
    color: var(--pido-text) !important;
}

/* ========================================================================
   PidoGame 1.8.11 — editorial video width, notice typography and rating tone
   ======================================================================== */
/* Keep emphasized notice copy readable without competing with the heading.
   Link colors remain governed by the existing primary-link contract. */
.pido-product-page .pido-product-notice__content :is(strong, b) {
    color: var(--pido-text-muted) !important;
    font-weight: var(--pido-font-weight-semibold, 600) !important;
}

.pido-product-page .pido-product-notice__content :is(strong, b) a {
    color: var(--pido-primary) !important;
}

/* A slightly stronger status surface while preserving the restrained design. */
.pido-game-product .pido-game-rating-footer--success {
    background-color: rgba(32, 199, 122, .21) !important;
}

.pido-game-product .pido-game-rating-footer--warning {
    background-color: rgba(255, 176, 32, .21) !important;
}

.pido-game-product .pido-game-rating-footer--danger {
    background-color: rgba(239, 71, 111, .19) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-game-product .pido-game-rating-footer--success {
    background-color: rgba(32, 199, 122, .29) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-game-product .pido-game-rating-footer--warning {
    background-color: rgba(255, 176, 32, .27) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-game-product .pido-game-rating-footer--danger {
    background-color: rgba(239, 71, 111, .26) !important;
}

/* ========================================================================
   PidoGame 1.8.12 — gift summary cleanup and shared product rating
   ======================================================================== */
/* The gift summary starts directly below the featured image; the legacy empty
   row and dashed divider were removed from the template. */
.pido-product-page--gift .pido-gift-summary-content {
    padding-top: .75rem !important;
}

.pido-product-page--gift .pido-gift-featured-image {
    display: block;
    height: auto;
}

/* Shared status footer used by game and gift-card summaries. */
.pido-product-page .pido-product-rating-footer {
    min-height: 56px;
    border-top: 1px solid var(--pido-border) !important;
    background-color: var(--pido-surface-soft) !important;
    color: var(--pido-text-muted) !important;
}

.pido-product-page .pido-product-rating-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1.2;
    color: inherit !important;
}

.pido-product-page .pido-product-rating-value .fs-6 {
    font-size: var(--pido-font-size-xs, .8125rem) !important;
}

.pido-product-page .pido-product-rating-empty {
    color: var(--pido-text-muted) !important;
}

.pido-product-page .pido-product-rating-footer--success {
    border-color: rgba(32, 199, 122, .30) !important;
    background-color: rgba(32, 199, 122, .21) !important;
    color: #137a50 !important;
}

.pido-product-page .pido-product-rating-footer--warning {
    border-color: rgba(255, 176, 32, .34) !important;
    background-color: rgba(255, 176, 32, .21) !important;
    color: #855908 !important;
}

.pido-product-page .pido-product-rating-footer--danger {
    border-color: rgba(239, 71, 111, .30) !important;
    background-color: rgba(239, 71, 111, .19) !important;
    color: #a92d4e !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page .pido-product-rating-footer {
    border-color: var(--pido-border) !important;
    background-color: var(--pido-surface-soft) !important;
    color: var(--pido-text-muted) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page .pido-product-rating-footer--success {
    border-color: rgba(32, 199, 122, .42) !important;
    background-color: rgba(32, 199, 122, .29) !important;
    color: #7be2b4 !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page .pido-product-rating-footer--warning {
    border-color: rgba(255, 176, 32, .42) !important;
    background-color: rgba(255, 176, 32, .27) !important;
    color: #f3cb75 !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page .pido-product-rating-footer--danger {
    border-color: rgba(239, 71, 111, .40) !important;
    background-color: rgba(239, 71, 111, .26) !important;
    color: #f494aa !important;
}

@media (max-width: 575.98px) {
    .pido-product-page .pido-product-rating-value {
        font-size: 1.25rem;
    }
}

/* ========================================================================
   PidoGame 1.8.15 — stable gift-card controls and original flip behavior
   ======================================================================== */
.pido-product-page--gift .pido-gift-filter-panel {
    margin-top: 1.5rem;
}

.pido-product-page--gift .pido-gift-filter-panel .card-body {
    padding: 2rem;
}

.pido-product-page--gift .pido-gift-filter-panel .btn-outline {
    min-height: 54px;
}

.pido-product-page--gift .pido-gift-cards-toolbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: .25rem;
}

.pido-product-page--gift #cards_section {
    margin-top: calc(1.5rem - var(--bs-gutter-y, 0rem));
}

.pido-product-page--gift #cards_section:not(.d-none) {
    margin-bottom: 1.75rem;
}

/* Own every visual state so programmatic focus cannot trigger the global solid button skin. */
.pido-product-page--gift .pido-gift-filter-back,
.pido-product-page--gift .pido-gift-filter-back:hover,
.pido-product-page--gift .pido-gift-filter-back:focus,
.pido-product-page--gift .pido-gift-filter-back:focus-visible,
.pido-product-page--gift .pido-gift-filter-back:active {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 46px;
    padding: .8rem 1.15rem;
    background-color: rgba(var(--pido-primary-rgb), .08) !important;
    border: 1px solid rgba(var(--pido-primary-rgb), .18) !important;
    color: var(--pido-primary) !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.pido-product-page--gift .pido-gift-filter-back:hover,
.pido-product-page--gift .pido-gift-filter-back:focus-visible {
    background-color: rgba(var(--pido-primary-rgb), .14) !important;
    border-color: rgba(var(--pido-primary-rgb), .34) !important;
}

.pido-product-page--gift .pido-gift-filter-back > span,
.pido-product-page--gift .pido-gift-filter-back svg,
.pido-product-page--gift .pido-gift-filter-back path {
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* The original card used a 600px perspective and an elastic .5s rotation.
   Keep that feel, but animate only transform and swap face opacity at mid-flip. */
.pido-product-page--gift .gift-card {
    position: relative;
    width: 100%;
    height: 200px;
    isolation: isolate;
    border: 0 !important;
    border-radius: calc(.4rem + 2px);
    background: transparent !important;
    box-shadow: none !important;
    perspective: 600px;
    transform-style: preserve-3d;
}

.pido-product-page--gift .gift-card-part {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 0 !important;
    outline: 0 !important;
    border-radius: inherit !important;
    background: transparent !important;
    background-clip: padding-box;
    box-shadow: none !important;
    clip-path: inset(0 round calc(.4rem + 2px));
    transform-origin: center center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    transition:
        transform .5s cubic-bezier(.175, .885, .32, 1.275),
        opacity .01s linear .245s;
}

.pido-product-page--gift .pido-gift-card-skin {
    position: absolute;
    z-index: 0;
    inset: -1px;
    display: block;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    max-width: none;
    pointer-events: none;
}

.pido-product-page--gift .pido-gift-card-stripe {
    position: absolute;
    z-index: 1;
    top: 40px;
    inset-inline: -1px;
    display: block;
    width: calc(100% + 2px);
    height: 40px;
    max-width: none;
    overflow: hidden;
    pointer-events: none;
}

.pido-product-page--gift .gift-card-front {
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 1.25rem !important;
    opacity: 1;
    transform: rotateY(0deg);
}

.pido-product-page--gift .gift-card-front > :not(.pido-gift-card-skin) {
    position: relative;
    z-index: 1;
}

.pido-product-page--gift .gift-card-back {
    z-index: 1;
    display: block;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
    transform: rotateY(-180deg);
}

.pido-product-page--gift .pido-gift-card-back-content {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    grid-template-rows: 44px minmax(0, 1fr);
    row-gap: 8px;
    min-width: 0;
    /* The price badge rises about 12px above the controls. Starting the row
       at 94px leaves a visible 2px gap after the stripe ending at 80px. */
    padding: 94px 1.25rem 4px;
}

.pido-product-page--gift .pido-gift-card-purchase-row {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 44px;
}

.pido-product-page--gift .pido-gift-card-quantity {
    display: inline-block;
    flex: 0 0 100px;
}

.pido-product-page--gift .pido-gift-card-quantity .form-control,
.pido-product-page--gift .pido-gift-card-quantity .btn {
    min-height: 44px;
}

.pido-product-page--gift .gift-card-add-to-cart-btn {
    flex: 0 1 142px;
    min-width: 132px;
    min-height: 44px;
    padding-inline: .85rem;
    white-space: nowrap;
}

.pido-product-page--gift .pido-gift-card-back-title {
    display: -webkit-box;
    align-self: start;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 1rem !important;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* WooCommerce or third-party add-to-cart listeners may inject a wc-forward
   link beside the custom AJAX button. It must never become part of the card. */
.pido-product-page--gift .gift-card-back .added_to_cart.wc-forward {
    display: none !important;
}

.pido-product-page--gift .pido-gift-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-height: 28px;
}

.pido-product-page--gift .gift-card-title {
    margin: 1.15rem 0 .85rem;
}

.pido-product-page--gift .pido-gift-card-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-bottom: .15rem;
}

.pido-product-page--gift .pido-gift-card-price,
.pido-product-page--gift .pido-gift-card-delivery {
    min-width: 0;
}

.pido-product-page--gift .pido-gift-card-delivery {
    text-align: start;
}

@media (hover: hover) and (pointer: fine) {
    .pido-product-page--gift .gift-card-flip:hover .gift-card-front {
        z-index: 1;
        opacity: 0;
        transform: rotateY(180deg);
    }

    .pido-product-page--gift .gift-card-flip:hover .gift-card-back {
        z-index: 2;
        opacity: 1;
        pointer-events: auto;
        transform: rotateY(0deg);
    }
}

.pido-product-page--gift .gift-card-flip:focus .gift-card-front,
.pido-product-page--gift .gift-card-flip:focus-within .gift-card-front {
    z-index: 1;
    opacity: 0;
    transform: rotateY(180deg);
}

.pido-product-page--gift .gift-card-flip:focus .gift-card-back,
.pido-product-page--gift .gift-card-flip:focus-within .gift-card-back {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
    transform: rotateY(0deg);
}

.pido-product-page--gift .gift-card-flip:focus-visible {
    outline: 2px solid rgba(var(--pido-primary-rgb), .48);
    outline-offset: 3px;
}

.pido-product-page--gift .pido-gift-filter-icon,
.pido-product-page--gift .pido-gift-card-brand-image {
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-panel,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-panel .card-body {
    background-color: var(--pido-surface) !important;
    border-color: var(--pido-border) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-back,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-back:hover,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-back:focus,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-back:focus-visible,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-back:active {
    background-color: rgba(var(--pido-primary-rgb), .12) !important;
    border-color: rgba(var(--pido-primary-rgb), .28) !important;
    color: var(--pido-primary) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-back:hover,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-back:focus-visible {
    background-color: rgba(var(--pido-primary-rgb), .2) !important;
    border-color: rgba(var(--pido-primary-rgb), .46) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-panel .btn-check + .btn-outline:hover,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-panel .btn-check:focus-visible + .btn-outline,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-panel .btn-check:checked + .btn-outline,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-panel .btn-outline.active {
    background-color: rgba(var(--pido-primary-rgb), .15) !important;
    border-color: var(--pido-primary) !important;
    color: var(--pido-primary) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-panel .btn-check + .btn-outline:hover span,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-panel .btn-check:focus-visible + .btn-outline span,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-panel .btn-check:checked + .btn-outline span,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-filter-panel .btn-outline.active span {
    color: inherit !important;
}

@media (prefers-reduced-motion: reduce) {
    .pido-product-page--gift .gift-card-part {
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
}

@media (max-width: 767.98px) {
    .pido-product-page--gift .pido-gift-filter-panel {
        margin-top: 1.125rem;
    }

    .pido-product-page--gift .pido-gift-filter-panel .card-body {
        padding: 1.25rem;
    }

    .pido-product-page--gift #cards_section {
        margin-top: calc(1.125rem - var(--bs-gutter-y, 0rem));
    }

    .pido-product-page--gift #cards_section:not(.d-none) {
        margin-bottom: 1.25rem;
    }

    .pido-product-page--gift .gift-card {
        height: 205px;
    }
}

/* Keep the gift-card platform icon brand color intact in dark mode. */
.pido-product-page--gift .pido-gift-platform-icon,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-platform-icon {
    background-color: var(--bs-info, #7239ea) !important;
    color: #fff !important;
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

.pido-product-page--gift .pido-gift-platform-icon :is(i, svg, path),
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--gift .pido-gift-platform-icon :is(i, svg, path) {
    color: #fff !important;
    fill: currentColor !important;
    filter: none !important;
    opacity: 1 !important;
}

/* ========================================================================
   PidoGame 1.8.17 — in-game item product hardening and visual consistency
   ======================================================================== */
.pido-product-page--item {
    min-width: 0;
}

.pido-product-page--item .pido-item-mobile-title {
    padding-inline: 1rem;
}

.pido-product-page--item .pido-item-product-title {
    color: var(--pido-text);
    font-size: clamp(1.45rem, 4vw, 1.75rem);
    line-height: 1.55;
}

.pido-product-page--item .pido-item-product-subtitle {
    color: #526277;
    font-size: 1rem;
    line-height: 1.75;
}

.pido-product-page--item .pido-item-wallpaper,
.pido-product-page--item .pido-item-wallpaper .card-body {
    overflow: hidden;
    border-radius: var(--pido-radius-card);
}

.pido-product-page--item .pido-item-hero-layout {
    margin-top: 1.5rem;
}

.pido-product-page--item .pido-item-hero-layout.has-wallpaper {
    margin-top: -160px;
}

.pido-product-page--item .pido-item-hero-main {
    min-width: 0;
    padding-top: 2.25rem;
}

.pido-product-page--item .pido-item-hero-content {
    min-width: 0;
    padding: 1.25rem;
    border: 0;
    background: transparent;
    color: var(--pido-text);
}

.pido-product-page--item .pido-item-desktop-title {
    margin: 0;
    line-height: 1.5;
}

.pido-product-page--item .pido-item-desktop-subtitle {
    color: rgba(255, 255, 255, .76) !important;
    line-height: 1.7;
}

.pido-product-page--item .pido-item-platform-row {
    position: relative;
    z-index: 1;
    gap: .45rem;
    margin-top: .5rem;
    margin-bottom: 1rem;
}

.pido-product-page--item .pido-item-platform-icon {
    flex: 0 0 auto;
    filter: none !important;
    opacity: 1 !important;
}

.pido-product-page--item .pido-item-short-description {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--pido-text-muted) !important;
}

.pido-product-page--item .pido-item-short-description > :first-child {
    margin-top: 0;
}

.pido-product-page--item .pido-item-short-description > :last-child {
    margin-bottom: 0;
}

.pido-product-page--item .pido-item-summary-card {
    overflow: hidden;
}

.pido-product-page--item .pido-item-featured-image {
    display: block;
    height: auto;
}

.pido-product-page--item .pido-item-summary-content {
    padding-top: .75rem !important;
}

.pido-product-page--item .pido-item-primary-attributes {
    margin-top: 0;
}

.pido-product-page--item .pido-item-meta-row {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    min-width: 0;
}

.pido-product-page--item .pido-item-meta-values {
    max-width: 62%;
    overflow-wrap: anywhere;
    text-align: end;
}

.pido-product-page--item .pido-item-purchase {
    width: 100%;
    min-width: 0;
    margin-top: 1rem;
}

.pido-product-page--item .pido-item-variation-list {
    display: grid;
    gap: .75rem;
    max-height: 430px;
    padding-inline-end: .35rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--pido-primary-rgb), .34) transparent;
}

.pido-product-page--item .pido-item-purchase-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: 1.05rem 1.1rem;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-control);
    background: var(--pido-surface-soft);
    color: var(--pido-text);
    transition: border-color .16s ease, background-color .16s ease;
}

.pido-product-page--item .pido-item-purchase-option.is-purchasable:hover,
.pido-product-page--item .pido-item-purchase-option.is-purchasable:focus-within {
    border-color: color-mix(in srgb, var(--pido-border) 68%, var(--pido-primary) 32%);
    background: color-mix(in srgb, var(--pido-surface-soft) 97%, var(--pido-primary) 3%);
}

.pido-product-page--item .pido-item-purchase-trigger {
    flex: 0 0 auto;
}

.pido-product-page--item .pido-item-purchase-fields {
    width: min(100%, 360px);
    max-width: 360px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
}

.pido-product-page--item .pido-item-purchase-fields .form-control,
.pido-product-page--item .pido-item-purchase-fields .form-select {
    min-height: 44px;
}

.pido-product-page--item .pido-item-option-summary {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem .7rem;
    min-width: 0;
    margin-inline-start: auto;
}

.pido-product-page--item .pido-item-option-price {
    font-size: 1rem;
    line-height: 1.55;
}

.pido-product-page--item .pido-item-option-title {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.pido-product-page--item .pido-item-option-subtitle {
    width: 100%;
    margin-inline-start: auto;
    direction: ltr;
    text-align: left !important;
}

.pido-product-page--item .pido-item-rating-footer {
    border-radius: 0 0 var(--pido-radius-card) var(--pido-radius-card);
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-hero-content {
    border: 0 !important;
    background: transparent !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-product-subtitle {
    color: var(--pido-text-muted) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-platform-icon,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-platform-icon :is(i, svg, path) {
    filter: none !important;
    opacity: 1 !important;
    color: #fff !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-purchase-option {
    border-color: var(--pido-border) !important;
    background: var(--pido-surface-soft) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-purchase-option.is-purchasable:hover,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-purchase-option.is-purchasable:focus-within {
    border-color: color-mix(in srgb, var(--pido-border) 64%, var(--pido-primary) 36%) !important;
    background: color-mix(in srgb, var(--pido-surface-soft) 95%, var(--pido-primary) 5%) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-purchase-fields,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-purchase-fields .pido-extra-fields-form {
    border: 0 !important;
    background: transparent !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-option-title {
    border-color: var(--pido-border) !important;
    background: var(--pido-surface) !important;
    color: var(--pido-text) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-variation-list {
    scrollbar-color: rgba(var(--pido-primary-rgb), .42) rgba(255, 255, 255, .035);
}

@media (max-width: 991.98px) {
    .pido-product-page--item .pido-item-mobile-card {
        margin-inline: 0;
    }

    .pido-product-page--item .pido-item-mobile-purchase {
        margin-inline: 0;
    }

    .pido-product-page--item .pido-item-platform-row--mobile {
        margin-top: .75rem;
        margin-bottom: 1rem;
    }

    .pido-product-page--item .pido-item-short-description {
        margin-top: .75rem;
    }
}

@media (max-width: 575.98px) {
    .pido-product-page--item .pido-item-summary-content {
        padding-inline: .75rem !important;
    }

    .pido-product-page--item .pido-item-purchase-option {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 1rem;
    }

    .pido-product-page--item .pido-item-purchase-trigger,
    .pido-product-page--item .pido-item-purchase-trigger .btn,
    .pido-product-page--item .pido-item-purchase-fields,
    .pido-product-page--item .pido-item-purchase-fields .btn {
        width: 100%;
        max-width: none;
    }

    .pido-product-page--item .pido-item-option-summary {
        justify-content: flex-start;
        margin-inline-start: 0;
    }

    .pido-product-page--item .pido-item-option-subtitle {
        text-align: left !important;
    }

    .pido-product-page--item .pido-item-meta-row {
        align-items: flex-start;
    }
}

.pido-product-page--item .pido-item-platform-icon,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-platform-icon {
    background-color: var(--bs-info, #7239ea) !important;
}

/* ========================================================================
   PidoGame 1.8.18 — item platform, badges, variations and optional gallery
   ======================================================================== */
.pido-product-page--item .pido-item-card-platform {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .75rem;
    padding: 0 .75rem;
    color: var(--pido-text-muted);
    line-height: 1.7;
}

.pido-product-page--item .pido-item-card-platform__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pido-product-page--item .pido-item-primary-badge {
    max-width: 100%;
    padding: .45rem .65rem;
    border: 1px solid transparent;
    font-weight: var(--pido-font-weight-semibold, 600);
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pido-product-page--item .pido-item-primary-badge--producer {
    border-color: rgba(25, 135, 84, .2);
    background: rgba(25, 135, 84, .1);
    color: #157347;
}

.pido-product-page--item .pido-item-primary-badge--requirement-game {
    border-color: rgba(var(--pido-primary-rgb), .25);
    background: rgba(var(--pido-primary-rgb), .1);
    color: var(--pido-primary);
}

.pido-product-page--item .pido-item-gallery-section {
    margin-top: 1.75rem;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-primary-badge--producer {
    border-color: rgba(74, 222, 128, .28) !important;
    background: rgba(34, 197, 94, .14) !important;
    color: #86efac !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-primary-badge--requirement-game {
    border-color: rgba(var(--pido-primary-rgb), .5) !important;
    background: rgba(var(--pido-primary-rgb), .18) !important;
    color: #7cc4ff !important;
}

@media (max-width: 991.98px) {
    .pido-product-page--item .pido-item-card-platform {
        margin-bottom: .25rem;
    }

    .pido-product-page--item .pido-item-gallery-section {
        margin-top: 1.35rem;
    }
}

/* ========================================================================

/* Product media migrated from inline background-image templates. */
.pido-product-wallpaper,
.pido-product-wallpaper .card-body,
.pido-product-wallpaper [class*="ar-"] {
    position: relative;
    overflow: hidden;
}

.pido-product-wallpaper__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pido-gift-hero-layout {
    margin-block-start: 0;
}

.pido-gift-hero-layout.has-wallpaper {
    margin-block-start: -160px;
}

.pido-gift-mobile-title {
    padding-inline-start: 1rem;
}

.pido-gift-subtitle--overlay {
    color: #fff !important;
}

.pido-gallery-slider {
    direction: ltr;
}

.pido-gift-gallery-thumb {
    position: relative;
    min-height: 175px;
    overflow: hidden;
    background: var(--pido-surface-soft);
}

.pido-gift-gallery-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .pido-gift-hero-layout.has-wallpaper {
        margin-block-start: 0;
    }
}

/* 1.8.40 — quieter repeated variation actions for in-game item products. */
.pido-product-page--item .pido-item-purchase-trigger .pido-open-purchase-fields {
    border: 1px solid color-mix(in srgb, var(--pido-border) 64%, var(--pido-primary) 36%) !important;
    background: color-mix(in srgb, var(--pido-surface) 92%, var(--pido-primary) 8%) !important;
    color: var(--pido-primary) !important;
    box-shadow: none !important;
}

.pido-product-page--item .pido-item-purchase-trigger .pido-open-purchase-fields:hover,
.pido-product-page--item .pido-item-purchase-trigger .pido-open-purchase-fields:focus-visible {
    border-color: color-mix(in srgb, var(--pido-border) 48%, var(--pido-primary) 52%) !important;
    background: color-mix(in srgb, var(--pido-surface) 86%, var(--pido-primary) 14%) !important;
    color: var(--pido-primary) !important;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--item .pido-item-purchase-trigger .pido-open-purchase-fields {
    border-color: color-mix(in srgb, var(--pido-border) 70%, var(--pido-primary) 30%) !important;
    background: color-mix(in srgb, var(--pido-surface-soft) 92%, var(--pido-primary) 8%) !important;
    color: color-mix(in srgb, var(--pido-primary) 78%, #fff 22%) !important;
}

/* ========================================================================
   PidoGame 1.8.42 — optional Steam account-creation purchase mode
   ======================================================================== */
/* The switch stays reachable after the default purchase fields are opened. */
.pido-product-page--game .pido-purchase-main {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}

.pido-product-page--game .pido-purchase-main > .wrap_open_fields {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
    margin: 0 !important;
}

.pido-product-page--game .pido-purchase-main > .pido-purchase-entry-actions {
    order: 1;
    flex: 0 0 auto;
}

.pido-product-page--game .pido-purchase-main > .pido-steam-account-switch {
    order: 2;
}

.pido-product-page--game .pido-purchase-entry-actions {
    flex-wrap: wrap;
    gap: .7rem;
}

.pido-product-page--game .pido-steam-account-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 42px;
    margin: 0;
    padding: .45rem .65rem;
    border: 1px solid var(--pido-border);
    border-radius: var(--pido-radius-control);
    background: var(--pido-surface-soft);
    color: var(--pido-text-muted);
    cursor: pointer;
    user-select: none;
}

.pido-product-page--game .pido-steam-account-switch__input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.pido-product-page--game .pido-steam-account-switch__track {
    position: relative;
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 22px;
    border: 1px solid color-mix(in srgb, var(--pido-border) 76%, var(--pido-text-muted) 24%);
    border-radius: 999px;
    background: var(--pido-control-bg);
    transition: border-color .15s ease, background-color .15s ease;
}

.pido-product-page--game .pido-steam-account-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pido-text-muted);
    transition: transform .15s ease, background-color .15s ease;
}

.pido-product-page--game .pido-steam-account-switch__input:checked + .pido-steam-account-switch__track {
    border-color: var(--pido-primary);
    background: color-mix(in srgb, var(--pido-primary) 22%, var(--pido-surface) 78%);
}

.pido-product-page--game .pido-steam-account-switch__input:checked + .pido-steam-account-switch__track::after {
    background: var(--pido-primary);
    transform: translateX(-16px);
}

.pido-product-page--game .pido-steam-account-switch__input:focus-visible + .pido-steam-account-switch__track {
    outline: 2px solid color-mix(in srgb, var(--pido-primary) 42%, transparent);
    outline-offset: 3px;
}

.pido-product-page--game .pido-steam-account-switch__label {
    font-size: .84rem;
    font-weight: var(--pido-font-weight-semibold, 600);
    line-height: 1.55;
}

.pido-product-page--game .pido-steam-account-switch__fee {
    display: inline-block;
    margin-inline-start: .25rem;
    color: var(--pido-primary);
    font-size: .8125rem;
    font-weight: var(--pido-font-weight-bold, 700);
    white-space: nowrap;
}

.pido-product-page--game .pido-steam-account-fields {
    margin-bottom: .25rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--pido-border) 72%, var(--pido-primary) 28%);
    border-radius: var(--pido-radius-control);
    background: color-mix(in srgb, var(--pido-surface-soft) 94%, var(--pido-primary) 6%);
}

.pido-product-page--game .pido-steam-account-fields__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .55rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--pido-border);
}

.pido-product-page--game .pido-steam-account-fields__header strong {
    color: var(--pido-text);
    font-size: .92rem;
    font-weight: var(--pido-font-weight-bold, 700);
}

.pido-product-page--game .pido-steam-account-fields__notice {
    margin: 0 0 1rem;
    color: var(--pido-text-muted);
    font-size: .84rem;
    line-height: 1.9;
}

.pido-product-page--game .pido-steam-account-reset {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .35rem .65rem;
    border: 1px solid color-mix(in srgb, var(--pido-border) 66%, var(--pido-primary) 34%);
    border-radius: var(--pido-radius-control);
    background: var(--pido-surface);
    color: var(--pido-primary);
    font: inherit;
    font-size: .8rem;
    font-weight: var(--pido-font-weight-semibold, 600);
    line-height: 1.5;
}

.pido-product-page--game .pido-steam-account-reset:hover,
.pido-product-page--game .pido-steam-account-reset:focus-visible {
    border-color: var(--pido-primary);
    background: color-mix(in srgb, var(--pido-surface) 90%, var(--pido-primary) 10%);
    color: var(--pido-primary);
    outline: 0;
}

html[data-pido-theme="dark"] body.pido-theme .pido-product-page--game .pido-steam-account-switch,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--game .pido-steam-account-fields,
html[data-pido-theme="dark"] body.pido-theme .pido-product-page--game .pido-steam-account-reset {
    border-color: var(--pido-border);
    background: var(--pido-surface-soft);
}

@media (max-width: 575.98px) {
    .pido-product-page--game .pido-purchase-entry-actions {
        align-items: stretch !important;
    }

    .pido-product-page--game .pido-purchase-main {
        align-items: stretch;
    }

    .pido-product-page--game .pido-purchase-main > .pido-purchase-entry-actions,
    .pido-product-page--game .pido-purchase-main > .pido-steam-account-switch {
        flex: 1 1 100%;
    }

    .pido-product-page--game .pido-purchase-main .pido-open-purchase-fields {
        width: 100%;
    }

    .pido-product-page--game .pido-steam-account-switch {
        width: 100%;
        justify-content: space-between;
    }

    .pido-product-page--game .pido-steam-account-fields {
        padding: .85rem;
    }
}
