.wcpmc-card {
    max-width: 440px;
    background: #f4f7fb;
    padding: 0 21px 28px;
    font-family: Arial, sans-serif;
    color: #244263;
    box-sizing: border-box;
}

.wcpmc-attribute-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #dbe3ec;
    font-size: 13px;
    line-height: 1.25;
}

.wcpmc-attribute-label {
    color: #7d8fa3;
    font-weight: 400;
}

.wcpmc-attribute-value {
    color: #244263;
    font-weight: 700;
    text-align: right;
}

.wcpmc-options {
    padding-top: 16px;
}

.wcpmc-option-group {
    margin-bottom: 16px;
}

.wcpmc-option-title {
    margin-bottom: 10px;
    font-size: 13px;
    color: #244263;
}

.wcpmc-option-title span {
    font-weight: 700;
}

.wcpmc-color-title,
.wcpmc-weight-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    flex-wrap: wrap;
}

.wcpmc-color-selection,
.wcpmc-weight-selection {
    min-width: 0;
    font-weight: 400 !important;
}

.wcpmc-variation-sku {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid #d5e0ec;
    border-radius: 6px;
    background: #ffffff;
    color: #244263;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.wcpmc-variation-sku[hidden] {
    display: none !important;
}

.wcpmc-variation-sku-label {
    color: #7d8fa3;
    font-weight: 400 !important;
}

.wcpmc-variation-sku-value {
    color: #244263;
    font-weight: 700;
}

.wcpmc-volume-buttons,
.wcpmc-weight-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wcpmc-volume-btn,
.wcpmc-weight-btn {
    min-width: 42px;
    height: 25px;
    padding: 0 14px;
    border: 1px solid #d5dce5;
    border-radius: 7px;
    background: #f8fafc;
    color: #284765;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s ease;
}

.wcpmc-volume-btn.active,
.wcpmc-weight-btn.active {
    border-color: #1f4774;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(31, 71, 116, 0.1);
}

.wcpmc-color-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.wcpmc-color-btn {
    height: 44px;
    padding: 0;
    border: 1px solid #d9e1ea;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: 0.2s ease;
}

.wcpmc-color-btn.active {
    border-color: #1f4774;
    box-shadow: 0 0 0 1px rgba(31, 71, 116, 0.2);
}

.wcpmc-color-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wcpmc-color-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 12px;
    color: #244263;
}

.wcpmc-price {
    margin-top: 30px;
    margin-bottom: 21px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #244263;
    font-size: 16px;
    font-weight: 700;
}

.wcpmc-price .woocommerce-Price-amount {
    font-size: 18px;
}

/* Не даём стилям темы скрыть цену выбранной вариации. */
.wcpmc-price .wcpmc-variation-price-value,
.wcpmc-price > .woocommerce-Price-amount.wcpmc-variation-price-value,
.wcpmc-price .wcpmc-variation-price-value .price,
.wcpmc-price .wcpmc-variation-price-value .woocommerce-Price-amount,
.wcpmc-price .wcpmc-variation-price-value .woocommerce-Price-currencySymbol {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wcpmc-price-unavailable {
    color: #b00020;
    font-size: 15px;
}

.wcpmc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    align-items: center;
}

.wcpmc-order-button,
.wcpmc-consult-button {
    height: 47px;
    border-radius: 28px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.wcpmc-order-button {
    border: 1px solid #244a77;
    background: #244a77;
    color: #ffffff;
}

.wcpmc-order-button:hover {
    background: #1c3d63;
    border-color: #1c3d63;
}

.wcpmc-order-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.wcpmc-order-button.loading::after {
    content: "...";
    margin-left: 4px;
}

.wcpmc-consult-button {
    border: 1px solid #8ac5df;
    background: transparent;
    color: #72b7d5;
}

.wcpmc-consult-button:hover {
    background: #e8f6fc;
    color: #499fc4;
}

.wcpmc-message {
    margin-top: 12px;
    font-size: 13px;
}

.wcpmc-message.error {
    color: #b00020;
}

.wcpmc-message.success {
    color: #1f7a3f;
}

/* Product gallery shortcode */

.wcpmc-product-gallery {
    width: 100%;
    max-width: 100%px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.wcpmc-product-gallery * {
    box-sizing: border-box;
}

.wcpmc-main-image-btn {
    width: 100%;
    height: 408px;
    padding: 0;
    margin: 0 0 12px;
    border: 1px solid #244a77;
    border-radius: 7px;
    background: #f8fafc;
    overflow: hidden;
    cursor: zoom-in;
    display: block;
}

.wcpmc-main-image {
    width: 80%;
    height: 100%;
    object-fit: contain;
    display: block;
	margin-left: auto;
	margin-right: auto;
	
}

.wcpmc-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.wcpmc-gallery-thumb {
    height: auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
    display: block;
}

.wcpmc-gallery-thumb:hover,
.wcpmc-gallery-thumb.active {
    border-color: #244a77;
}

.wcpmc-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery lightbox */

body.wcpmc-lightbox-open {
    overflow: hidden;
}

.wcpmc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcpmc-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 24, 43, 0.86);
}

.wcpmc-lightbox-inner {
    position: relative;
    z-index: 2;
    width: min(92vw, 980px);
    height: min(88vh, 780px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcpmc-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    display: block;
}

.wcpmc-lightbox-close,
.wcpmc-lightbox-prev,
.wcpmc-lightbox-next {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #244263;
    cursor: pointer;
    z-index: 3;
    transition: 0.2s ease;
    padding: 0;
    text-align: center;
}

.wcpmc-lightbox-close:hover,
.wcpmc-lightbox-prev:hover,
.wcpmc-lightbox-next:hover {
    background: #ffffff;
}

.wcpmc-lightbox-close {
    top: -18px;
    right: -18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 38px;
}

.wcpmc-lightbox-prev,
.wcpmc-lightbox-next {
    top: 50%;
    width: 46px;
    height: 64px;
    margin-top: -32px;
    border-radius: 28px;
    font-size: 42px;
    line-height: 54px;
}

.wcpmc-lightbox-prev {
    left: -62px;
}

.wcpmc-lightbox-next {
    right: -62px;
}

@media (max-width: 480px) {
    .wcpmc-card {
        max-width: 100%;
        padding: 0 16px 24px;
    }

    .wcpmc-actions {
        gap: 14px;
    }

    .wcpmc-color-title,
    .wcpmc-weight-title {
        align-items: flex-start;
    }

    .wcpmc-order-button,
    .wcpmc-consult-button {
        height: 45px;
        font-size: 11px;
    }

    .wcpmc-product-gallery {
        max-width: 100%;
    }

    .wcpmc-main-image-btn {
        height: 330px;
    }

    .wcpmc-gallery-thumbs {
        gap: 8px;
    }

    .wcpmc-gallery-thumb {
        height: 82px;
    }

    .wcpmc-lightbox-inner {
        width: 94vw;
        height: 80vh;
    }

    .wcpmc-lightbox-close {
        top: -50px;
        right: 0;
    }

    .wcpmc-lightbox-prev {
        left: 8px;
    }

    .wcpmc-lightbox-next {
        right: 8px;
    }
}
