/**
 * Fabletics storefront styles for packages/productPromotionSet.
 *
 * This file intentionally belongs to template/fabletics. The package owns the
 * promotion data and server-side rules; each template owns its presentation.
 */

.pps {
    border: 1px solid #f0ccd8;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 30px 0;
    padding: 20px;
    width: 100%;
}

.pps__header {
    margin-bottom: 20px;
    text-align: center;
}

.pps__title {
    color: #d52967;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.pps__subtitle {
    font-size: 13px;
    margin: 0;
    line-height: 1.45;
    opacity: .9;
}

/* Carousel ---------------------------------------------------------------- */

.pps__carousel {
    position: relative;
}

.pps__carousel__nav .swiper-button-prev,
.pps__carousel__nav .swiper-button-next {
    align-items: center;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    box-sizing: border-box;
    color: #111;
    display: flex;
    height: 34px;
    justify-content: center;
    margin-top: -17px;
    opacity: 1;
    padding: 0;
    top: 38%;
    transition: border-color .2s ease, background-color .2s ease;
    width: 34px;
    z-index: 5;
}

.pps__carousel__nav .swiper-button-prev {
    left: 14px;
}

.pps__carousel__nav .swiper-button-next {
    right: 14px;
}

.pps__carousel__nav .swiper-button-prev:hover,
.pps__carousel__nav .swiper-button-next:hover {
    background: #f8f8f8;
    border-color: #aaa;
}

.pps__carousel__nav .swiper-button-disabled,
.pps__carousel__nav .swiper-button-lock {
    display: none !important;
}

.pps .pps__carousel__nav .swiper-button-prev::after,
.pps .pps__carousel__nav .swiper-button-next::after {
    content: none !important;
    display: none !important;
}

.pps__carousel__nav .swiper-button-prev:before,
.pps__carousel__nav .swiper-button-next:before {
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    display: block;
    height: 8px;
    width: 8px;
}

.pps__carousel__nav .swiper-button-prev:before {
    transform: translateX(2px) rotate(45deg);
}

.pps__carousel__nav .swiper-button-next:before {
    transform: translateX(-2px) rotate(225deg);
}

.pps__item {
    position: relative;
}

.pps__item__trigger {
    background: #fff;
    border: 1px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    padding: 0;
    text-align: left;
    width: 100%;
}


.pps__item__image {
    background: #f5f5f5;
    display: block;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
}

.pps__item__image img {
    display: block;
    height: 100%;
    max-width: 100%;
    width: 100%;
}

/* Selected products get a check marker so the state is not colour-only. */
.pps__item.is-in-set .pps__item__image:after {
    align-items: center;
    background: #000;
    border: 2px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
    color: #fff;
    content: "\2713";
    display: flex;
    font-size: 13px;
    height: 24px;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 24px;
}

.pps__item__info {
    display: block;
    padding: 0 2px;
}

.pps__item__brand,
.pps__item__title,
.pps__item__price {
    display: block;
}

.pps__item__brand {
    font-size: 10px;
    line-height: 1.3;
    opacity: .7;
    text-transform: uppercase;
}

.pps__item__title {
    font-size: 12px;
    line-height: 1.35;
    margin: 3px 0 4px;
}

.pps__item__price {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.pps__item__price--current,
.pps__item__price--old {
    display: block;
    white-space: nowrap;
}

.pps__item__price--old {
    font-weight: 400;
    margin-top: 2px;
    opacity: .6;
}

/* Configurator ------------------------------------------------------------ */

.pps__configurator {
    border-top: 1px solid #ececec;
    margin-top: 20px;
    padding-top: 20px;
    width: 100%;
}

.pps__conf {
    width: 100%;
}

.pps__conf__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pps__conf__product {
    display: flex;
    gap: 12px;
    min-width: 0;
}

.pps__conf__product-image {
    flex: 0 0 58px;
    width: 58px;
}

.pps__conf__product-info,
.pps__conf__product-brand,
.pps__conf__title {
    display: block;
}

.pps__conf__product-info {
    min-width: 0;
}

.pps__conf__product-brand {
    font-size: 11px;
    margin-bottom: 3px;
    opacity: .65;
    text-transform: uppercase;
}

.pps__conf__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.pps__conf__price {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.pps__conf__price-old {
    color: #767676;
    font-weight: 400;
    margin-left: 6px;
    opacity: .8;
}

.pps__conf__close {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0 0 0 8px;
}

.pps__conf__label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.pps__conf__colors,
.pps__conf__sizes {
    margin-bottom: 20px;
}

.pps__conf__color-list,
.pps__conf__size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Colours render as circles, per the spec. */
.pps__conf__color {
    background: none;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    height: 40px;
    overflow: hidden;
    padding: 2px;
    width: 40px;
}

.pps__conf__color.is-selected {
    border-color: currentColor;
}

.pps__conf__color__swatch {
    border: 1px solid #dedede;
    border-radius: 50%;
    box-sizing: border-box;
    display: block;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.pps__conf__size {
    background: none;
    border: 1px solid rgba(127, 127, 127, .5);
    cursor: pointer;
    font-size: 12px;
    min-height: 42px;
    min-width: 58px;
    padding: 8px 14px;
}

.pps__conf__size.is-selected {
    border-color: currentColor;
    font-weight: 600;
}

.pps__conf__size.is-unavailable {
    background-color: #ededed;
    color: #777;
    cursor: not-allowed;
    overflow: hidden;
    position: relative;
}

.pps__conf__size.is-unavailable::after {
    background: linear-gradient(-31deg, transparent 48%, #9c9c9c 49%, #9c9c9c 51%, transparent 52%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.pps__conf__submit,
.pps__summary__submit {
    background: #000;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 13px;
    font-weight: 700;
    min-height: 46px;
    padding: 12px 16px;
    text-transform: uppercase;
    width: 100%;
}

.pps__conf__submit.is-disabled {
    cursor: not-allowed;
    opacity: .5;
}

.pps__conf__error,
.pps__error {
    color: #c0392b;
    font-size: 12px;
    margin: 8px 0 0;
}

.pps__error {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 12px;
}

/* Set summary ------------------------------------------------------------- */

.pps__summary {
    border-top: 1px solid rgba(127, 127, 127, .3);
    margin-top: 20px;
    padding-top: 16px;
}

.pps__summary__title {
    color: #d52967;
    font-size: 15px;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.pps__summary__line {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

.pps__summary__line + .pps__summary__line {
    border-top: 1px solid rgba(127, 127, 127, .2);
}

.pps__summary__line__image {
    flex: 0 0 64px;
    max-width: 64px;
}

.pps__summary__line__image img {
    display: block;
    height: auto;
    width: 100%;
}

.pps__summary__line__info {
    flex: 1 1 auto;
}

.pps__summary__line__title {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.pps__summary__line__meta {
    display: block;
    font-size: 12px;
    margin: 4px 0;
    opacity: .8;
}

.pps__summary__line__meta > span {
    display: inline-block;
    margin-right: 10px;
}

.pps__summary__line__actions button {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    text-decoration: underline;
}

.pps__summary__line__actions button + button {
    margin-left: 10px;
}

.pps__summary__line__price {
    flex: 0 0 auto;
    text-align: right;
}

.pps__summary__line__price--final {
    display: block;
    font-weight: 600;
}

.pps__summary__line__price--regular {
    display: block;
    font-size: 12px;
    opacity: .6;
}

.pps__summary__totals {
    border-top: 1px solid rgba(127, 127, 127, .3);
    margin-top: 10px;
    padding-top: 10px;
}

.pps__summary__row {
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    padding: 3px 0;
}

.pps__summary__row--total {
    font-size: 15px;
    font-weight: 700;
}

.pps__summary__row--discount {
    color: #d52967;
    font-weight: 600;
}

.pps__summary__submit {
    margin-top: 18px;
}

.pps__summary__submit.is-disabled {
    cursor: not-allowed;
    opacity: .5;
}

.pps__summary__notice {
    background: #fff8e8;
    border: 1px solid #f0d99f;
    color: #755300;
    font-size: 13px;
    line-height: 1.4;
    margin: 14px 0 0;
    padding: 10px 12px;
}

.pps__summary__line.is-missing-size .pps__summary__line__size {
    color: #bd2157;
    font-weight: 700;
}

@media (max-width: 575px) {
    .pps {
        padding: 16px 12px;
    }

    .pps__conf__size {
        flex: 1 0 calc(33.333% - 10px);
        min-width: 0;
    }

    .pps__carousel__nav .swiper-button-prev,
    .pps__carousel__nav .swiper-button-next {
        height: 30px;
        margin-top: -15px;
        top: 27%;
        width: 30px;
    }

    .pps__carousel__nav .swiper-button-prev {
        left: 10px;
    }

    .pps__carousel__nav .swiper-button-next {
        right: 10px;
    }

    .pps__summary__line {
        gap: 8px;
    }

    .pps__summary__line__image {
        flex-basis: 52px;
        max-width: 52px;
    }
}

/* Basket ------------------------------------------------------------------ */

.pps-basket-note {
    background: #fff1f6;
    border: 1px solid #efb8cb;
    border-radius: 3px;
    color: #bd2157;
    display: table;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 4px;
    padding: 4px 7px;
    text-transform: uppercase;
}

[data-pps-set] {
    border-color: #efb8cb !important;
}

.pps-basket-set-group {
    border: 2px solid #efb8cb;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 0 12px 12px;
}

.pps-basket-set-group__title {
    background: #fff1f6;
    color: #bd2157;
    font-size: 13px;
    font-weight: 700;
    margin: 0 -12px 12px;
    padding: 9px 12px;
    text-transform: uppercase;
}

.content-popup.pps-remove-confirm-popup {
    max-width: 440px;
}

.pps-remove-confirm__message {
    font-size: 15px;
    line-height: 1.5;
    margin: 16px 0 28px;
}

.pps-remove-confirm__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.pps-remove-confirm__actions button {
    border: 1px solid #111;
    cursor: pointer;
    min-width: 110px;
    padding: 12px 18px;
}

.pps-remove-confirm__cancel {
    background: #fff;
    color: #111;
}

.pps-remove-confirm__submit {
    background: #111;
    color: #fff;
}

.pps-basket-set-group > [data-pps-set] {
    border-left: 0 !important;
    border-right: 0 !important;
    margin-bottom: 0 !important;
      border-top: 0 !important;
      border-bottom: 0 !important;
}

.pps-basket-set-group > [data-pps-set]:last-child {
    border-bottom: 0 !important;
}

.pps-basket-set-group .pps-basket-note {
    display: none;
}

/* These are deliberately Fabletics selectors. Set lines are discrete, so their
   quantity cannot be changed independently. The JS also blocks clicks because
   pointer-events does not stop programmatic events. */
[data-pps-set] .increase-article-qty-in-basket,
[data-pps-set] .decrease-article-qty-in-basket,
.pps-qty-locked {
    cursor: not-allowed !important;
    opacity: .4 !important;
    pointer-events: none !important;
}
