.zpo-piece-options {
    margin: 22px 0 20px;
    padding: 20px;
    border: 1px solid rgba(20, 20, 20, .12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .055);
}

.zpo-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.zpo-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.zpo-heading-row h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.zpo-required {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #555;
    font-size: 11px;
    font-weight: 700;
}

.zpo-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.zpo-option-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 92px;
    align-items: center;
    gap: 10px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #dadada;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.zpo-option-card:hover {
    border-color: #222;
    transform: translateY(-1px);
}

.zpo-option-card.is-selected {
    border-color: #111;
    box-shadow: 0 0 0 2px #111 inset;
}

.zpo-option-card input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none;
}

.zpo-radio-dot {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1.5px solid #aaa;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px #fff inset;
}

.zpo-option-card.is-selected .zpo-radio-dot {
    border-color: #111;
    background: #111;
}

.zpo-option-copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.zpo-option-copy strong {
    color: #111;
    font-size: 15px;
    line-height: 1.2;
}

.zpo-option-copy small {
    margin-top: 3px;
    color: #777;
    font-size: 11px;
    line-height: 1.25;
}

.zpo-option-price {
    flex: 0 0 auto;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.zpo-option-price .woocommerce-Price-currencySymbol {
    font-size: .85em;
}

.zpo-popular {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 8px;
    border-radius: 0 11px 0 9px;
    background: #111;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.zpo-selection-note {
    margin: 11px 0 0;
    color: #666;
    font-size: 12px;
}

.zpo-selection-note strong {
    color: #111;
}

.zpo-price-range .zpo-from {
    margin-right: 3px;
    color: #777;
    font-size: .72em;
    font-weight: 500;
    text-transform: uppercase;
}

.zpo-price-range .zpo-separator {
    padding: 0 3px;
    opacity: .55;
}

@media (max-width: 767px) {
    .zpo-piece-options {
        padding: 16px;
    }

    .zpo-option-grid {
        grid-template-columns: 1fr;
    }

    .zpo-option-card {
        min-height: 72px;
    }
}

.zpo-size-section {
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid rgba(20, 20, 20, .1);
}

.zpo-size-heading h4 {
    margin: 0 0 11px;
    color: #111;
    font-size: 16px;
    line-height: 1.35;
}

.zpo-size-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.zpo-size-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.zpo-size-field > span {
    color: #222;
    font-size: 13px;
    font-weight: 700;
}

.zpo-size-field em {
    color: #c62828;
    font-style: normal;
}

.zpo-size-field select {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 0 38px 0 13px;
    border: 1px solid #d5d5d5;
    border-radius: 9px;
    background-color: #fff;
    color: #111;
    font-size: 14px;
}

.zpo-size-field select:focus {
    border-color: #111;
    outline: 0;
    box-shadow: 0 0 0 1px #111;
}

.zpo-native-size-note {
    margin: 15px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f6f6f6;
    color: #555;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .zpo-size-grid {
        grid-template-columns: 1fr;
    }
}

/* Catalog-wide size selector for simple products that already have a Size attribute. */
.zpo-global-size {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(20, 20, 20, .12);
    border-radius: 12px;
    background: #fff;
}

.zpo-global-size label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.zpo-global-size label > span {
    color: #222;
    font-size: 14px;
    font-weight: 700;
}

.zpo-global-size label > span em {
    color: #c62828;
    font-style: normal;
}

.zpo-global-size select {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 0 38px 0 13px;
    border: 1px solid #d5d5d5;
    border-radius: 9px;
    background-color: #fff;
    color: #111;
    font-size: 14px;
}

.zpo-global-size select:focus {
    border-color: #111;
    outline: 0;
    box-shadow: 0 0 0 1px #111;
}
