/*
 * Peti Plugin — Global Stylesheet
 */

.cbcustom .fusion-form-checkbox label::before {
    background: #fff !important;
    border: 1px solid #111 !important;
    opacity: 1 !important;
}


.cbcustom .fusion-form-checkbox input:checked + label::before {
    background: #111 !important;
}

/* Still Ground Art – Woo Additional Information / Adatok blokk */

.sga-attributes-grid table.shop_attributes,
.sga-attributes-grid table.woocommerce-product-attributes {
    width: 100%;
    max-width: 1040px;
    border: 0;
    margin: 0;
}

.sga-attributes-grid table.shop_attributes tbody,
.sga-attributes-grid table.woocommerce-product-attributes tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 32px;
    row-gap: 0;
    max-width: 1040px;
    justify-content: start;
}

/* Egy attribútumsor: címke + érték */
.sga-attributes-grid table.shop_attributes tr,
.sga-attributes-grid table.woocommerce-product-attributes tr {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    column-gap: 14px;
    align-items: baseline;
    width: 100% !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    padding: 8px 0;
}

/* Címkék és értékek alapformázása */
.sga-attributes-grid table.shop_attributes th,
.sga-attributes-grid table.shop_attributes td,
.sga-attributes-grid table.woocommerce-product-attributes th,
.sga-attributes-grid table.woocommerce-product-attributes td {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    vertical-align: baseline;
}

/* Attribútumcímkék */
.sga-attributes-grid table.shop_attributes th,
.sga-attributes-grid table.woocommerce-product-attributes th {
    font-weight: 500;
    line-height: 1.5;
    color: #000;
}

/* Attribútumértékek */
.sga-attributes-grid table.shop_attributes td,
.sga-attributes-grid table.woocommerce-product-attributes td {
    font-weight: 400;
    line-height: 1.5;
    color: #555;
    white-space: nowrap;
}

/* WooCommerce gyakran p tagbe teszi az értékeket */
.sga-attributes-grid table.shop_attributes td p,
.sga-attributes-grid table.woocommerce-product-attributes td p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    white-space: nowrap;
}

/* Mobilon egyoszlopos, természetes tördeléssel */
@media (max-width: 800px) {
    .sga-attributes-grid table.shop_attributes,
    .sga-attributes-grid table.woocommerce-product-attributes {
        max-width: 100%;
    }

    .sga-attributes-grid table.shop_attributes tbody,
    .sga-attributes-grid table.woocommerce-product-attributes tbody {
        display: block !important;
        max-width: 100%;
    }

    .sga-attributes-grid table.shop_attributes tr,
    .sga-attributes-grid table.woocommerce-product-attributes tr {
        display: grid !important;
        grid-template-columns: 110px minmax(0, 1fr) !important;
        column-gap: 12px;
        width: 100% !important;
    }

    .sga-attributes-grid table.shop_attributes td,
    .sga-attributes-grid table.woocommerce-product-attributes td,
    .sga-attributes-grid table.shop_attributes td p,
    .sga-attributes-grid table.woocommerce-product-attributes td p {
        white-space: normal;
    }
}

.sga-attributes-grid table.shop_attributes tr:nth-child(3),
.sga-attributes-grid table.shop_attributes tr:nth-child(7),
.sga-attributes-grid table.woocommerce-product-attributes tr:nth-child(3),
.sga-attributes-grid table.woocommerce-product-attributes tr:nth-child(7) {
    grid-row: 3;
}

.sga-attributes-grid table.shop_attributes tr:nth-child(4),
.sga-attributes-grid table.shop_attributes tr:nth-child(8),
.sga-attributes-grid table.woocommerce-product-attributes tr:nth-child(4),
.sga-attributes-grid table.woocommerce-product-attributes tr:nth-child(8) {
    grid-row: 4;
}



/* Still Ground Art – festménykártya képhely */

.sga-card-image {
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    background: #f8f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sga-card-image .fusion-image-wrapper,
.sga-card-image a,
.sga-card-image picture {
    width: 100%;
    height: 100%;
    display: block;
}

.sga-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}


/* Still Ground Art – Post Cards pagination */

.sga-paintings-grid .fusion-pagination,
.sga-paintings-grid .pagination,
.sga-paintings-grid nav.pagination,
.sga-paintings-grid .woocommerce-pagination,
.sga-paintings-grid .woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 48px;
    text-align: center;
    border: 0;
    list-style: none;
}

/* WooCommerce / WordPress ul-li alap törlése */
.sga-paintings-grid .woocommerce-pagination ul.page-numbers,
.sga-paintings-grid .woocommerce-pagination ul.page-numbers li {
    margin-left: 0;
    padding-left: 0;
}

/* Alap oldalszámok: ne legyenek négyzetben */
.sga-paintings-grid .fusion-pagination a,
.sga-paintings-grid .fusion-pagination span,
.sga-paintings-grid .pagination a,
.sga-paintings-grid .pagination span,
.sga-paintings-grid nav.pagination a,
.sga-paintings-grid nav.pagination span,
.sga-paintings-grid .woocommerce-pagination a.page-numbers,
.sga-paintings-grid .woocommerce-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: 32px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #555555;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
}

/* Hover: finom sötétedés, nem erős linkhatás */
.sga-paintings-grid .fusion-pagination a:hover,
.sga-paintings-grid .pagination a:hover,
.sga-paintings-grid nav.pagination a:hover,
.sga-paintings-grid .woocommerce-pagination a.page-numbers:hover {
    color: #000000;
    background: transparent;
    text-decoration: none;
}

/* Aktív oldalszám: csak ez kapjon négyzetet */
.sga-paintings-grid .fusion-pagination .current,
.sga-paintings-grid .pagination .current,
.sga-paintings-grid nav.pagination .current,
.sga-paintings-grid .woocommerce-pagination span.page-numbers.current {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d8d8d8;
    background: #f8f7f4;
    color: #000000;
}

/* Előző / következő nyilak alapformázása */
.sga-paintings-grid .fusion-pagination .prev,
.sga-paintings-grid .fusion-pagination .next,
.sga-paintings-grid .pagination .prev,
.sga-paintings-grid .pagination .next,
.sga-paintings-grid nav.pagination .prev,
.sga-paintings-grid nav.pagination .next,
.sga-paintings-grid .woocommerce-pagination .prev.page-numbers,
.sga-paintings-grid .woocommerce-pagination .next.page-numbers {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555555;
    font-size: 0;
    line-height: 1;
}

/* Bal nyíl */
.sga-paintings-grid .fusion-pagination .prev::before,
.sga-paintings-grid .pagination .prev::before,
.sga-paintings-grid nav.pagination .prev::before,
.sga-paintings-grid .woocommerce-pagination .prev.page-numbers::before {
    content: "←";
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

/* Jobb nyíl */
.sga-paintings-grid .fusion-pagination .next::before,
.sga-paintings-grid .pagination .next::before,
.sga-paintings-grid nav.pagination .next::before,
.sga-paintings-grid .woocommerce-pagination .next.page-numbers::before {
    content: "→";
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

/* Nyilak hover */
.sga-paintings-grid .fusion-pagination .prev:hover,
.sga-paintings-grid .fusion-pagination .next:hover,
.sga-paintings-grid .pagination .prev:hover,
.sga-paintings-grid .pagination .next:hover,
.sga-paintings-grid nav.pagination .prev:hover,
.sga-paintings-grid nav.pagination .next:hover,
.sga-paintings-grid .woocommerce-pagination .prev.page-numbers:hover,
.sga-paintings-grid .woocommerce-pagination .next.page-numbers:hover {
    color: #000000;
    background: transparent;
}

/* Mobilon kicsit szűkebb */
@media (max-width: 767px) {
    .sga-paintings-grid .fusion-pagination,
    .sga-paintings-grid .pagination,
    .sga-paintings-grid nav.pagination,
    .sga-paintings-grid .woocommerce-pagination,
    .sga-paintings-grid .woocommerce-pagination ul.page-numbers {
        gap: 10px;
        margin-top: 36px;
    }

    .sga-paintings-grid .fusion-pagination a,
    .sga-paintings-grid .fusion-pagination span,
    .sga-paintings-grid .pagination a,
    .sga-paintings-grid .pagination span,
    .sga-paintings-grid nav.pagination a,
    .sga-paintings-grid nav.pagination span,
    .sga-paintings-grid .woocommerce-pagination a.page-numbers,
    .sga-paintings-grid .woocommerce-pagination span.page-numbers {
        font-size: 14px;
    }

    .sga-paintings-grid .fusion-pagination .current,
    .sga-paintings-grid .pagination .current,
    .sga-paintings-grid nav.pagination .current,
    .sga-paintings-grid .woocommerce-pagination span.page-numbers.current {
        min-width: 30px;
        height: 30px;
    }
}

/* Still Ground Art – Alkotói napló Post Card képhely */

.sga-journal-card-image {
    aspect-ratio: 4 / 5;
    width: 100%;
    overflow: hidden;
    background: #f8f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sga-journal-card-image .fusion-image-wrapper,
.sga-journal-card-image a,
.sga-journal-card-image picture {
    width: 100%;
    height: 100%;
    display: block;
}

.sga-journal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* Still Ground Art – Sticky header gray separator */

.fusion-header-wrapper {
  border-bottom: 1px solid #d8d3c8;
}

.fusion-header-wrapper.fusion-is-sticky,
.fusion-header-wrapper.fusion-is-sticky .fusion-header,
.fusion-is-sticky .fusion-header {
  border-bottom: 1px solid #d8d3c8 !important;
}


/* Still Ground Art – űrlapmező alatti kiegészítő szöveg */

.sga-field-help {
    margin-top: -10px;
    margin-bottom: 18px;
}

.sga-field-help,
.sga-field-help p {
    color: #777 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.sga-field-help p {
    margin: 0 !important;
    padding: 0 !important;
}



/* Still Ground Art – űrlap visszajelzések mobilon */

@media (max-width: 767px) {
    .sga-form-notice.fusion-alert,
    .sga-form-notice .fusion-alert {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 18px 16px !important;
    }

    .sga-form-notice .fusion-alert-content-wrapper {
        display: block !important;
        width: 100% !important;
    }

    .sga-form-notice .alert-icon {
        display: block !important;
        margin: 0 0 12px !important;
        text-align: center;
    }

    .sga-form-notice .fusion-alert-content {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        font-size: 16px !important;
        line-height: 1.55 !important;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .sga-form-notice .close {
        top: 8px !important;
        right: 8px !important;
    }
}


blockquote {
	background-color: #efefef !important;
	text-indent: 0 !important;
	border: 0 !important;
	font-style: normal !important;
}

/* Peti plugin – effektív státusz alapján megjelenő elemek */

body:not(.pp-effective-status-available) .pp-show-available {
    display: none !important;
}

body:not(.pp-effective-status-reserved) .pp-show-reserved {
    display: none !important;
}

body:not(.pp-effective-status-sold) .pp-show-sold {
    display: none !important;
}

body:not(.pp-effective-status-artist_collection) .pp-show-artist-collection {
    display: none !important;
}

body.pp-effective-status-artist_collection .pp-hide-artist-collection {
    display: none !important;
}

/*
 * END PP CSS
 */