.pd-shipping-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #2563eb;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 0 0 12px;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pd-shipping-bar__message {
    margin-bottom: 9px;
    color: #334155;
    font-weight: 600;
}
.pd-shipping-bar__track {
    background: #edf2f7;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}
.pd-shipping-bar__fill {
    background: #2563eb;
    height: 100%;
    transition: width 0.3s ease;
}
.pd-gift-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 0 0 12px;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pd-gift-bar__message {
    margin-bottom: 9px;
    color: #334155;
    font-weight: 600;
}
.pd-gift-bar__track {
    background: #fef3c7;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}
.pd-gift-bar__fill {
    background: #f59e0b;
    height: 100%;
    transition: width 0.3s ease;
}
.pd-gift-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: #fed7aa;
    color: #9a3412;
    font-size: 11px;
    border-radius: 999px;
    font-weight: 600;
    vertical-align: middle;
}
.pd-bxgy-tag {
    background: #dcfce7;
    color: #166534;
}
.pd-gift-fixed-qty,
.pd-locked-gift-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    text-align: center;
}
.pd-locked-gift-qty {
    pointer-events: none;
}
.pd-locked-gift-control {
    cursor: not-allowed !important;
    opacity: 0.45;
    pointer-events: none;
}
.yangsheep-quantity-control.pd-locked-ys-gift-control {
    background: #f8fafc;
    border-color: #d1d5db;
    cursor: default;
    opacity: 1;
    pointer-events: none;
}
.yangsheep-quantity-control.pd-locked-ys-gift-control .yangsheep-qty-btn {
    display: none !important;
}
.yangsheep-quantity-control.pd-locked-ys-gift-control .yangsheep-qty-value {
    color: #334155;
    font-weight: 700;
    min-width: 28px;
}
.pd-ys-locked-gift-item .yangsheep-item-qty,
.pd-ys-locked-gift-item .col-qty {
    cursor: default;
}

.pd-promo-progress {
    --pd-progress-accent: var(--theme-button-background-initial-color, #5f7f8f);
    --pd-progress-border: var(--theme-section-border-color, #e2e8f0);
    --pd-progress-radius: var(--block-border-radius, 8px);
    --pd-progress-text: var(--ys-text-primary, #334155);
    --pd-progress-muted: var(--ys-text-secondary, #64748b);
    --pd-progress-heading: var(--ys-text-heading, #1f2937);
    background: var(--section-bg-color, #ffffff);
    border: 1px solid var(--pd-progress-border);
    border-radius: var(--pd-progress-radius);
    color: var(--pd-progress-text);
    font-size: 14px;
    line-height: 1.5;
    margin: 14px 0 20px;
    overflow: hidden;
    padding: 0;
}
.pd-promo-progress:empty,
.pd-promo-progress-root:empty {
    display: none;
}
.yangsheep-design-checkout-page .yangsheep-order-review .pd-promo-progress {
    background: transparent;
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--pd-progress-border);
    margin: 12px 0 0;
    overflow: visible;
}
.pd-promo-progress--checkout {
    margin-bottom: 20px;
}
.yangsheep-design-checkout-page .yangsheep-order-review .pd-promo-progress--checkout {
    margin-bottom: 0;
}
.pd-promo-progress__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
}
.yangsheep-design-checkout-page .yangsheep-order-review .pd-promo-progress__head {
    padding: 12px 0 8px;
}
.pd-promo-progress__eyebrow {
    color: var(--pd-progress-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3px;
}
.pd-promo-progress__title {
    border: 0;
    color: var(--pd-progress-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    padding: 0;
}
.pd-promo-progress__subtotal {
    color: var(--pd-progress-muted);
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}
.pd-promo-progress__subtotal span,
.pd-promo-progress__subtotal strong {
    display: block;
}
.pd-promo-progress__subtotal strong {
    color: var(--pd-progress-heading);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.pd-promo-tags {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pd-promo-tag-row {
    border-top: 1px solid var(--pd-progress-border);
    margin: 0;
    padding: 12px 38px 12px 14px;
    position: relative;
}
.yangsheep-design-checkout-page .yangsheep-order-review .pd-promo-tag-row {
    padding-left: 0;
    padding-right: 28px;
}
.pd-promo-tag-row::after {
    color: #94a3b8;
    content: "›";
    font-size: 24px;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 17px;
}
.yangsheep-design-checkout-page .yangsheep-order-review .pd-promo-tag-row::after {
    right: 0;
}
.pd-promo-tag-row__line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.pd-promo-chip {
    align-items: center;
    background: #eef8f4;
    border: 1px solid #c7eadb;
    border-radius: 999px;
    color: #276749;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    gap: 5px;
    line-height: 1;
    min-height: 24px;
    padding: 4px 9px 4px 7px;
    white-space: nowrap;
}
.pd-promo-chip__icon {
    background: #49bd8b;
    border-radius: 999px;
    display: inline-flex;
    height: 14px;
    position: relative;
    width: 14px;
}
.pd-promo-chip__icon::before {
    border: solid #fff;
    border-width: 0 1.6px 1.6px 0;
    content: "";
    height: 6px;
    left: 5px;
    position: absolute;
    top: 3px;
    transform: rotate(45deg);
    width: 3px;
}
.pd-promo-tag-row.is-pending .pd-promo-chip {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}
.pd-promo-tag-row.is-pending .pd-promo-chip__icon {
    background: #f59e0b;
}
.pd-promo-tag-row.is-pending .pd-promo-chip__icon::before {
    border: 0;
    color: #fff;
    content: "!";
    font-size: 10px;
    font-weight: 800;
    height: auto;
    left: 5px;
    line-height: 14px;
    top: 0;
    transform: none;
    width: auto;
}
.pd-promo-tag-row.is-neutral .pd-promo-chip {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: var(--pd-progress-muted);
}
.pd-promo-tag-row.is-neutral .pd-promo-chip__icon {
    background: #94a3b8;
}
.pd-promo-tag-row.is-neutral .pd-promo-chip__icon::before {
    background: #fff;
    border: 0;
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 5px;
    top: 5px;
    transform: none;
    width: 4px;
}
.pd-promo-tag-row__arrow {
    border-bottom: 5px solid transparent;
    border-left: 6px solid #94a3b8;
    border-top: 5px solid transparent;
    display: inline-block;
    height: 0;
    width: 0;
}
.pd-promo-tag-row__title {
    color: var(--pd-progress-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}
.pd-promo-tag-row__caption {
    color: var(--pd-progress-muted);
    font-size: 12px;
    line-height: 1.55;
    margin-top: 5px;
}
.pd-promo-tag-row__caption span + span::before {
    color: #cbd5e1;
    content: " / ";
    padding: 0 2px;
}
.pd-promo-rule-progress {
    background: #e5e7eb;
    border-radius: 999px;
    height: 6px;
    margin-top: 9px;
    overflow: hidden;
}
.pd-promo-rule-progress__fill {
    background: linear-gradient(90deg, #49bd8b, #16a34a);
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 6px;
    transition: width 0.28s ease;
}
.pd-promo-tag-row.is-pending .pd-promo-rule-progress__fill {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}
.pd-promo-tag-row.is-neutral .pd-promo-rule-progress__fill {
    background: linear-gradient(90deg, #94a3b8, #64748b);
}
.pd-promo-rule-progress__amounts {
    color: var(--pd-progress-muted);
    display: flex;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    justify-content: space-between;
    line-height: 1.2;
    margin-top: 5px;
}
.pd-cart-refreshing .woocommerce-cart-form,
.pd-cart-refreshing .cart_totals {
    opacity: 0.55;
    pointer-events: none;
}

/* Product page — promotions this product can join, shown below add-to-cart.
   Reuses the checkout panel's classes verbatim so the styling is identical;
   the only product-specific change is folding the conditions into a toggle. */
.pd-promo-progress--product {
    margin: 16px 0;
}
/* No cart context here, so drop the "go to detail" chevron and reclaim its room. */
.pd-promo-progress--product .pd-promo-tag-row {
    padding-right: 14px;
}
.pd-promo-progress--product .pd-promo-tag-row::after {
    content: none;
}
/* Collapsible conditions / activity dates / scope */
.pd-promo-tag-row__details {
    margin-top: 8px;
}
.pd-promo-tag-row__details > summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pd-progress-accent, #5f7f8f);
    user-select: none;
}
.pd-promo-tag-row__details > summary::-webkit-details-marker {
    display: none;
}
.pd-promo-tag-row__details > summary::after {
    content: "⌄";
    font-size: 13px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.pd-promo-tag-row__details[open] > summary::after {
    transform: rotate(180deg);
}
.pd-promo-tag-row__details > summary + .pd-promo-tag-row__caption {
    margin-top: 6px;
}
/* On a product page, the "has a target" chip uses a warm honey-amber that reads
   as "almost there / nearly unlocked" rather than a warning — friendlier text
   colour than the checkout amber, and a neutral dot instead of the "!".
   (Scoped to the product card; the checkout amber state is untouched.) */
.pd-promo-progress--product .pd-promo-tag-row.is-pending .pd-promo-chip {
    background: #fff4e3;
    border-color: #ffd8a0;
    color: #b45309;
}
.pd-promo-progress--product .pd-promo-tag-row.is-pending .pd-promo-chip__icon {
    background: #f59e0b;
}
.pd-promo-progress--product .pd-promo-tag-row.is-pending .pd-promo-chip__icon::before {
    background: #fff;
    border: 0;
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 5px;
    top: 5px;
    transform: none;
    width: 4px;
}

.pd-catalog-price,
.pd-cart-price,
.pd-cart-subtotal {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}
.pd-catalog-price del,
.pd-cart-price del,
.pd-cart-subtotal del {
    color: #64748b;
    opacity: 0.78;
}
.pd-catalog-price ins,
.pd-cart-price ins,
.pd-cart-subtotal ins {
    color: #c2410c;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
}
.pd-sale-badge {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

/* Applied-discounts summary — injected into or near cart / checkout totals */
.pd-applied-summary {
    background: #f8fafc;
    border: 1px solid var(--theme-section-border-color, #e5e7eb);
    border-radius: var(--block-border-radius, 8px);
    padding: 10px 12px;
    margin: 12px 0;
    color: var(--ys-text-primary, #1f2937);
    font-size: 13px;
    line-height: 1.45;
}
.pd-applied-summary--checkout,
.cart-shortcode .pd-applied-summary {
    margin: 10px 0;
}
.yangsheep-order-summary .pd-applied-summary {
    background: transparent;
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--theme-section-border-color, #e5e7eb);
    margin: 8px 0;
    padding: 8px 0;
}
.pd-applied-summary-root:empty {
    display: none;
}
.pd-applied-summary__title {
    border: none;
    color: var(--ys-text-secondary, #64748b);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px;
    padding: 0;
}
.pd-applied-summary__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pd-applied-summary__item {
    border-top: 1px solid #e2e8f0;
    margin: 0;
    padding: 7px 0;
}
.pd-applied-summary__item:first-child {
    border-top: none;
    padding-top: 0;
}
.pd-applied-summary__item:last-child {
    padding-bottom: 0;
}
.pd-applied-summary__item--total {
    margin-top: 2px;
}
.pd-applied-summary__row {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}
.pd-applied-summary__label {
    align-items: center;
    color: var(--ys-text-primary, #334155);
    display: inline-flex;
    flex-wrap: wrap;
    font-weight: 600;
    gap: 6px;
    min-width: 0;
}
.pd-applied-summary__badge {
    background: #e8f7ef;
    border-radius: 999px;
    color: #147a52;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 7px;
}
.pd-applied-summary__amount {
    color: #047857;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pd-applied-summary__amount--applied {
    font-size: 12px;
}
.pd-applied-summary__scope {
    color: var(--ys-text-secondary, #64748b);
    font-size: 12px;
    margin-top: 3px;
}
.yangsheep-order-summary .pd-applied-summary__item {
    border-top-color: #edf2f7;
}
.yangsheep-order-summary .pd-applied-summary__row {
    min-height: 24px;
}

@media (max-width: 480px) {
    .pd-promo-progress {
        padding: 0;
    }
    .pd-promo-progress__head {
        display: block;
    }
    .pd-promo-progress__subtotal {
        margin-top: 10px;
        text-align: left;
    }
    .pd-promo-tag-row {
        padding: 11px 34px 11px 12px;
    }
    .pd-promo-tag-row::after {
        right: 12px;
    }
    .pd-applied-summary__row {
        align-items: flex-start;
    }
}

.pd-price-table {
    border-collapse: collapse;
    margin: 12px 0;
}
.pd-price-table th,
.pd-price-table td {
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    text-align: left;
}
.pd-price-table th {
    background: #f8fafc;
}
