/** Fonts **/

@font-face {
  font-family: 'added-to-cart-popup-woocommerce';
  src:  url('fonts/added-to-cart-popup-woocommerce.eot');
  src:  url('fonts/added-to-cart-popup-woocommerce.eot') format('embedded-opentype'),
    url('fonts/added-to-cart-popup-woocommerce.ttf') format('truetype'),
    url('fonts/added-to-cart-popup-woocommerce.woff') format('woff'),
    url('fonts/added-to-cart-popup-woocommerce.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="xoo-cp-icon-"], [class*=" xoo-cp-icon-"] {
  font-family: 'added-to-cart-popup-woocommerce' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.xoo-cp-icon-spinner:before {
  content: "\e97b";
}

.xoo-cp-icon-cross:before {
  content: "\ea0d";
}

.xoo-cp-icon-check:before {
  content: "\ea10";
}

/** -- **/
.xoo-cp-opac {
    z-index: 99998;
    background: rgba(15, 23, 42, 0.55);
    position: fixed;
    display: none;
    backdrop-filter: blur(3px);
}

.xoo-cp-opac,
.xoo-cp-modal,
.xoo-cp-cont-opac {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.xoo-cp-modal {
    position: fixed;
    z-index: 99998;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.96);
}

.xoo-cp-active {
    transition: visibility 0.25s ease-out, opacity 0.25s ease-out, transform 0.25s ease-out;
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.xoo-cp-cont-opac {
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.78);
    position: absolute;
}

.xoo-cp-modal:before {
    content: none;
}

.xoo-cp-container {
    position: relative;
    width: min(980px, 100%);
    max-width: 980px;
    border: 0;
    background: #fff;
    text-align: left;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
    border-radius: 0;
    padding: 32px 36px 36px;
}

.xoo-cp-container > span.xoo-cp-close {
    font-size: 34px;
    position: absolute;
    right: 20px;
    top: 20px;
    color: #9ca3af;
    background-color: transparent;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.xoo-cp-container > span.xoo-cp-close:hover {
    color: #111827;
    transform: rotate(90deg);
}

.xoo-cp-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.xoo-cp-heading-wrap {
    padding-right: 56px;
}

.xoo-cp-heading {
    margin: 0;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111827;
}

.xoo-cp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: start;
}

.xoo-cp-layout--summary-only {
    grid-template-columns: 280px;
    justify-content: end;
}

.xoo-cp-product {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.xoo-cp-product-media {
    min-height: 220px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xoo-cp-product-image {
    display: block;
    width: 100%;
}

.xoo-cp-product-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
}

.xoo-cp-product-main {
    min-width: 0;
    padding-top: 6px;
}

.xoo-cp-product-title {
    display: block;
    color: #111827;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.xoo-cp-product-title:hover {
    color: #111827;
}

.xoo-cp-product-meta {
    margin-top: 8px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.45;
}

.xoo-cp-product-price {
    margin-top: 18px;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

.xoo-cp-product-controls {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.xoo-cp-icon-spinner {
    animation: xoo-cp-spin 575ms infinite linear;
    display: inline-block;
}

.xoo-cp-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: xoo-cp-spin 575ms infinite linear;
    font-size: 44px;
    color: #111827;
}

@keyframes xoo-cp-spin {
     from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@-ms-keyframes xoo-cp-spin {
    from { -ms-transform: rotate(0deg); }
    to { -ms-transform: rotate(360deg); }
}

@-moz-keyframes xoo-cp-spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}

@-webkit-keyframes xoo-cp-spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

.xoo-cp-outer {
    display: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
}

.xoo-cp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

a.xcp-btn {
    width: 100%;
    padding: 18px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-align: center;
    cursor: pointer;
    text-transform: none;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

a.xcp-btn:hover {
    transform: translateY(-1px);
}

a.xoo-cp-btn-vc {
    background: #4d0116;
    color: #ffffff;
    border-color: #4d0116;
    box-shadow: 0 12px 24px rgba(77, 1, 22, 0.18);
}

a.xoo-cp-btn-vc:hover {
    color: #ffffff;
}

a.xoo-cp-btn-secondary,
a.xoo-cp-close.xcp-btn {
    background: #f3f4f6;
    color: #111827;
    border-color: transparent;
    box-shadow: none;
}

a.xoo-cp-btn-secondary:hover,
a.xoo-cp-close.xcp-btn:hover {
    color: #111827;
    background: #eceff3;
}

.xoo-cp-cart-summary {
    margin-top: 10px;
    padding: 8px 4px 0;
    color: #4b5563;
}

.xoo-cp-cart-summary-text {
    font-size: 18px;
    line-height: 1.45;
}

.xoo-cp-cart-summary-total {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xoo-cp-cart-summary-caption {
    color: #9ca3af;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xoo-cp-cart-summary-total strong,
.xoo-cp-cart-summary-total .amount,
.xoo-cp-cart-summary-total .woocommerce-Price-amount {
    color: #111827;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
}

.xoo-cp-success,
.xoo-cp-error {
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    display: block;
    text-align: left;
}

.xoo-cp-error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
    margin-top: 10px;
}

span.xcp-minus {
    border-right-width: 0;
}

span.xcp-plus {
    border-left-width: 0;
}

span.xcp-plus,
span.xcp-minus {
    display: inline-flex;
    text-align: center;
    cursor: pointer;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6b7280;
    border-radius: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

span.xcp-plus:hover,
span.xcp-minus:hover {
    background: #ffffff;
    color: #111827;
}

input[type=number].xoo-cp-qty {
    background: transparent;
    text-align: center;
    display: inline-block;
    height: 42px;
    line-height: 42px;
    padding: 0;
    max-width: 48px;
    margin: 0;
    border: 0 !important;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

input.xoo-cp-qty::-webkit-outer-spin-button,
input.xoo-cp-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.xoo-cp-qtybox {
    border-width: 0;
    position: relative;
    display: flex;
    font-weight: 700;
    height: auto;
    line-height: 1;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 18px;
    padding: 4px;
}

.xoo-cp-qty-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 10px 16px;
    border-radius: 16px;
    background: #f3f4f6;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.xoo-cp-added,
.xoo-cp-adding {
    margin-left: 5px;
}

.xoo-cp-notice-box {
  left: 0;
  right: 0;
  bottom: 50px;
  position: fixed;
  z-index: 100000;
}

.xoo-cp-notice-box > div {
    display: table;
    margin: 0 auto;
    background-color: #333;
    padding: 10px 20px;
    color: white;
    font-weight: 500;
    font-size: 15px;
}

.xoo-cp-notice ul.woocommerce-error a.button {
    display: none;
}

.xoo-cp-notice ul.woocommerce-error {
   margin: 0;
}

@media only screen and (max-width: 900px) {
    .xoo-cp-modal {
        padding: 10px;
        align-items: center;
    }

    .xoo-cp-container,
    .xoo-cp-container a,
    .xoo-cp-container input,
    .xoo-cp-container .xoo-cp-heading,
    .xoo-cp-container .xoo-cp-product-title,
    .xoo-cp-container .xoo-cp-product-meta,
    .xoo-cp-container .xoo-cp-product-price,
    .xoo-cp-container .xoo-cp-cart-summary-text,
    .xoo-cp-container .xoo-cp-cart-summary-total,
    .xoo-cp-container .xoo-cp-cart-summary-caption {
        font-family: "Yandex Sans Text Regular", "Yandex Sans Text", Arial, sans-serif;
    }

    .xoo-cp-container {
        padding: 20px 20px 24px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .xoo-cp-content {
        gap: 20px;
    }

    .xoo-cp-heading {
        font-size: 34px;
        line-height: 42px;
    }

    .xoo-cp-product-title {
        font-size: 20px;
        line-height: 26px;
    }

    .xoo-cp-product-meta,
    .xoo-cp-cart-summary-text,
    .xoo-cp-container a.xcp-btn,
    input[type=number].xoo-cp-qty,
    .xoo-cp-qty-static {
        font-size: 16px;
        line-height: 20px;
    }

    .xoo-cp-product-price,
    .xoo-cp-cart-summary-total strong,
    .xoo-cp-cart-summary-total .amount,
    .xoo-cp-cart-summary-total .woocommerce-Price-amount {
        font-size: 30px;
        line-height: 1.1;
    }

    .xoo-cp-layout,
    .xoo-cp-layout--summary-only {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 20px;
    }

    .xoo-cp-product {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 16px;
    }

    .xoo-cp-product-media {
        min-height: 170px;
        padding: 12px;
        border-radius: 18px;
    }

    .xoo-cp-product-image img {
        max-height: 170px;
    }

    .xoo-cp-sidebar {
        max-width: none;
        gap: 10px;
    }

    a.xcp-btn {
        padding: 15px 16px;
    }
}

@media only screen and (max-width: 640px) {
    .xoo-cp-modal {
        padding: 8px;
    }

    .xoo-cp-container {
        padding: 16px 14px 18px;
        max-height: calc(100vh - 16px);
    }

    .xoo-cp-container > span.xoo-cp-close {
        right: 14px;
        top: 14px;
        font-size: 24px;
    }

    .xoo-cp-heading-wrap {
        padding-right: 28px;
    }

    .xoo-cp-heading {
        font-size: 28px;
        line-height: 36px;
    }

    .xoo-cp-content {
        gap: 16px;
    }

    .xoo-cp-layout,
    .xoo-cp-layout--summary-only {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .xoo-cp-product {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .xoo-cp-product-media {
        min-height: 116px;
        width: 116px;
        max-width: none;
        padding: 10px;
        border-radius: 14px;
    }

    .xoo-cp-product-image img {
        max-height: 116px;
    }

    .xoo-cp-product-main {
        padding-top: 0;
    }

    .xoo-cp-product-title {
        font-size: 18px;
        line-height: 24px;
    }

    .xoo-cp-product-meta,
    .xoo-cp-cart-summary-text,
    .xoo-cp-container a.xcp-btn,
    input[type=number].xoo-cp-qty,
    .xoo-cp-qty-static {
        font-size: 16px;
        line-height: 20px;
    }

    .xoo-cp-product-price,
    .xoo-cp-cart-summary-total strong,
    .xoo-cp-cart-summary-total .amount,
    .xoo-cp-cart-summary-total .woocommerce-Price-amount {
        font-size: 24px;
        line-height: 1.1;
    }

    .xoo-cp-product-controls {
        margin-top: 12px;
        gap: 10px;
    }

    .xoo-cp-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-width: none;
    }

    .xoo-cp-cart-summary {
        grid-column: 1 / -1;
        margin-top: 0;
        padding: 10px 0 0;
        border-top: 1px solid #e5e7eb;
    }

    .xoo-cp-cart-summary-caption {
        font-size: 13px;
        line-height: 16px;
    }

    .xoo-cp-cart-summary-total {
        margin-top: 6px;
    }

    .xoo-cp-qtybox {
        padding: 3px;
        border-radius: 14px;
    }

    span.xcp-plus,
    span.xcp-minus {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    input[type=number].xoo-cp-qty {
        height: 36px;
        line-height: 36px;
        max-width: 40px;
    }

    .xoo-cp-qty-static {
        min-width: 48px;
        padding: 8px 12px;
    }

    a.xcp-btn {
        min-height: 52px;
        padding: 12px 10px;
    }
}