/* ==========================================================================
   Polymart Green – Green Gallery
   ========================================================================== */

.pg-gallery {
    --pg-image-width: 63%;
    --pg-thumbs-per-view: 3;
    --pg-gap: 12px;
    --pg-accent: #c2561a;
    --pg-navy: #0d3348;
}

.pg-gallery__top {
    display: grid;
    grid-template-columns: var(--pg-image-width) minmax(0, 1fr);
    min-height: 560px;
}

.pg-gallery__main {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #d4ebdd 0%, #87bb99 100%);
}

.pg-gallery__main .pg-gallery__main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.pg-gallery__main-img.is-fading {
    opacity: 0;
}

.pg-gallery__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--pg-navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.pg-gallery__panel {
    display: flex;
    flex-direction: column;
    padding: 48px 46px;
    background-color: #fdf2dc;
    color: var(--pg-navy);
}

.pg-gallery__label {
    margin-bottom: 16px;
    color: var(--pg-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pg-gallery__heading {
    margin: 0 0 16px;
    color: var(--pg-navy);
    font-size: 38px;
    line-height: 1.05;
}

.pg-gallery__content {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.6;
}

.pg-gallery__slogan {
    margin-bottom: 22px;
    color: #16432a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

.pg-gallery__divider {
    height: 0;
    margin: 0 0 20px!important;
    border: 0;
    border-top: 1px solid rgba(13, 51, 72, 0.15);
}

.pg-gallery__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.pg-gallery__detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.pg-gallery__detail-icon {
    flex: 0 0 auto;
    display: inline-flex;
    width: 14px;
    padding-top: 3px;
    color: #7a8791;
    font-size: 11px;
}

.pg-gallery__detail-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.pg-gallery__detail-text {
    display: flex;
    flex-direction: column;
}

.pg-gallery__detail-title {
    font-size: 14px;
    font-weight: 700;
}

.pg-gallery__detail-value {
    color: #6c7a84;
    font-size: 13px;
    font-weight: 600;
}

.pg-gallery__arrows {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.pg-gallery__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(13, 51, 72, 0.2);
    border-radius: 50%;
    background: #fff;
    color: var(--pg-navy);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pg-gallery__arrow:hover,
.pg-gallery__arrow:focus-visible {
    background: var(--pg-navy);
    color: #fff;
}

.pg-gallery__thumbs {
    position: relative;
    display: flex;
    gap: var(--pg-gap);
    margin-top: var(--pg-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.pg-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.pg-gallery__thumb {
    flex: 0 0 calc((100% - (var(--pg-thumbs-per-view) - 1) * var(--pg-gap)) / var(--pg-thumbs-per-view));
    height: 130px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 0;
    background: #d4ebdd;
    cursor: pointer;
    scroll-snap-align: start;
    opacity: 0.75;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.pg-gallery__thumb:hover,
.pg-gallery__thumb:focus-visible,
.pg-gallery__thumb.is-active {
    opacity: 1;
}

.pg-gallery__thumb.is-active {
    border-color: var(--pg-accent);
}

.pg-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .pg-gallery__panel {
        padding: 36px 30px;
    }

    .pg-gallery__heading {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .pg-gallery__top {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .pg-gallery__main {
        aspect-ratio: 4 / 3;
    }

    .pg-gallery__panel {
        padding: 28px 20px;
    }

    .pg-gallery__heading {
        font-size: 28px;
    }

    .pg-gallery__thumb {
        height: 90px;
    }
}

/* ==========================================================================
   Polymart Green – See Your Impact Grow
   ========================================================================== */

.pg-impact {
    --pg-impact-inputs: 50%;
    --pg-impact-gap: 30px;
    --pg-impact-control-h: 30px;
    --pg-impact-green: #006e5a;
    padding: 40px 42px 44px;
    border-radius: 28px;
    /* Fallback only – the default background comes from the widget's Background control. */
    background-color: #fff;
    color: #1b1b1b;
}

.pg-impact__header {
    margin-bottom: 24px;
}

.pg-impact__title {
    margin: 0;
    color: var(--pg-impact-green);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.pg-impact__subtitle {
    margin: 4px 0 0;
    color: #2f7d67;
    font-size: 16px;
}

/* Two columns: inputs | results. */
.pg-impact__body {
    display: grid;
    grid-template-columns: minmax(0, var(--pg-impact-inputs)) minmax(0, 1fr);
    gap: var(--pg-impact-gap);
    align-items: start;
}

.pg-impact__fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pg-impact__field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 16px 18px;
    border: 1px solid #e3e3e3;
    border-radius: 18px;
    background-color: #fff;
}

.pg-impact__field-label {
    flex: 0 0 auto;
    margin: 0;
    color: #1b1b1b;
    font-size: 14px;
    line-height: 1.3;
	min-width:100px;
}

.pg-impact__stepper {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pg-impact .pg-impact__input {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    height: var(--pg-impact-control-h);
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background-color: #e6e6e6;
    color: var(--pg-impact-green);
    font-size: 16px;
    font-weight: 700;
    box-shadow: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.pg-impact .pg-impact__input::-webkit-outer-spin-button,
.pg-impact .pg-impact__input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.pg-impact .pg-impact__input:focus {
    outline: 2px solid rgba(0, 110, 90, 0.35);
    outline-offset: 1px;
}

.pg-impact .pg-impact__step {
    order: 2;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: var(--pg-impact-control-h);
    margin: 0;
    padding: 0;
    border: 1px solid #2b2b2b;
    border-radius: 999px;
    background-color: #e6e6e6;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pg-impact .pg-impact__step:hover,
.pg-impact .pg-impact__step:focus-visible {
    background-color: var(--pg-impact-green);
    border-color: var(--pg-impact-green);
    color: #fff;
}

.pg-impact .pg-impact__step:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* "Split" places − before the input and + after it. */
.pg-impact--buttons-split .pg-impact__step--minus {
    order: 0;
}

.pg-impact__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pg-impact__card {
    display: flex;
    flex-direction: column;
    min-height: 152px;
    padding: 22px 22px 20px;
    border-radius: 18px;
    color: #fff;
}

.pg-impact__card--trees {
    background-color: var(--pg-impact-green);
}

.pg-impact__card--meals {
    background-color: #ffb000;
}

.pg-impact__card-emoji {
    margin-bottom: 6px;
    font-size: 26px;
    line-height: 1;
}

.pg-impact__card-value {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.pg-impact__card-label {
    margin-top: auto;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pg-impact__tagline {
    margin: 26px 0 0;
    color: var(--pg-impact-green);
    font-size: 16px;
    font-weight: 700;
}

.pg-impact__tagline-highlight {
    color: #111;
}

@media (max-width: 1024px) {
    .pg-impact__body {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .pg-impact {
        padding: 28px 18px;
        border-radius: 20px;
    }

    .pg-impact__title {
        font-size: 24px;
    }

    .pg-impact__field {
        flex-wrap: wrap;
        padding: 14px;
    }

    .pg-impact__field-label {
        flex-basis: 100%;
    }

    .pg-impact__card {
        min-height: 130px;
        padding: 18px 16px;
    }

    .pg-impact__card-value {
        font-size: 32px;
    }
}

/* ==========================================================================
   Polymart Green – Promise
   ========================================================================== */

.pg-promise {
    --pg-promise-circle: 52px;
    --pg-promise-gap: 24px;
    display: flex;
    align-items: flex-start;
    gap: var(--pg-promise-gap);
}

.pg-promise__group {
    flex: 1 1 0;
    min-width: 0;
}

.pg-promise__title {
    margin-bottom: 22px;
    color: #c2561a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.pg-promise__title--spacer {
    visibility: hidden;
}

.pg-promise__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-promise__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
    text-align: center;
}

.pg-promise__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--pg-promise-circle);
    height: var(--pg-promise-circle);
    border: 1px solid #b9d8b0;
    border-radius: 50%;
    background-color: #f8f8e6;
    color: #0d3348;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.pg-promise__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.pg-promise__step-title {
    color: #0d3348;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.pg-promise__separator {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pg-promise__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--pg-promise-circle);
    color: #c2561a;
    font-size: 30px;
    line-height: 1;
}

.pg-promise__arrow svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Stacked layout: groups one below another, arrow points down. */
@media (max-width: 1024px) {
    .pg-promise--stack-tablet {
        flex-direction: column;
        align-items: stretch;
    }

    .pg-promise--stack-tablet .pg-promise__title--spacer {
        display: none;
    }

    .pg-promise--stack-tablet .pg-promise__arrow {
        height: auto;
        transform: rotate(90deg);
    }
}

@media (max-width: 767px) {
    .pg-promise--stack-mobile {
        flex-direction: column;
        align-items: stretch;
    }

    .pg-promise--stack-mobile .pg-promise__title--spacer {
        display: none;
    }

    .pg-promise--stack-mobile .pg-promise__arrow {
        height: auto;
        transform: rotate(90deg);
    }

    .pg-promise {
        --pg-promise-circle: 46px;
    }

    .pg-promise__title {
        margin-bottom: 16px;
    }

    .pg-promise__steps {
        gap: 10px;
    }

    .pg-promise__step {
        gap: 8px;
    }

    .pg-promise__icon {
        font-size: 20px;
    }

    .pg-promise__step-title {
        font-size: 13px;
    }
}
