.d4-gold-purchase {
    min-width: 0;
    color: var(--d2r-ink);
    background: #fff;
    font: 14px/1.5 Poppins-Regular, Arial, sans-serif;
}
.d4-gold-purchase *, .d4-gold-purchase *::before, .d4-gold-purchase *::after { box-sizing: border-box; }
.d4-gold-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
    align-items: start;
    gap: 24px;
    padding: 24px var(--catalog-content-gutter) 30px;
}
.d4-gold-card { min-width: 0; padding: 0; margin: 0; }
.d4-gold-purchase h2 { margin: 0; color: inherit; font: 20px/1.4 Poppins-SemiBold, Arial, sans-serif; }
.d4-gold-purchase .d4-catalog-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 14px; }
.d4-gold-purchase .d4-catalog-section-heading h2 { min-width: 0; }
.d4-gold-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.d4-gold-package { min-width: 0; margin: 0; padding: 0; }
.d4-gold-package button { width: 100%; min-height: 44px; padding: 5px; margin: 0; border: 1px solid #d8e1ed; border-radius: 6px; background: #fff; color: var(--d2r-ink); font: 13px/1.3 Poppins-Medium, Arial, sans-serif; cursor: pointer; touch-action: manipulation; }
.d4-gold-package button:hover { background: var(--d2r-selected); }
.d4-gold-package.cur button { background: var(--d2r-accent); border-color: var(--d2r-accent); color: #fff; }
.d4-gold-quantity-label { display: block; margin-top: 16px; }
.d4-gold-stepper {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: stretch;
    width: 100%;
    height: 48px;
    margin-top: 6px;
    padding: 0;
    border: 1px solid #d8e1ed;
    border-radius: 8px;
    overflow: hidden;
    background: var(--d2r-paper);
}
.d4-gold-adjust { display: grid; place-items: center; width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: #e8f0fc; color: var(--d2r-ink); cursor: pointer; touch-action: manipulation; }
.d4-gold-adjust svg { display: block; flex: none; }
.d4-gold-stepper .d4-gold-amount-input { width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0 4px; border: 0; border-radius: 0; background: transparent; color: var(--d2r-ink); font: 17px/1 Poppins-SemiBold, Arial, sans-serif; text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; }
.d4-gold-amount-input::-webkit-inner-spin-button, .d4-gold-amount-input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.d4-gold-purchase :is(button, input):focus-visible { outline: 2px solid var(--d2r-accent); outline-offset: -2px; }
.d4-gold-stepper:focus-within { outline: 2px solid var(--d2r-accent); outline-offset: -2px; }
.d4-gold-stepper input:focus-visible { outline: none; }
.d4-gold-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--d2r-line); border-radius: 10px; }
.d4-gold-metrics > div { min-width: 0; padding: 12px 16px; }
.d4-gold-metrics > div + div { border-inline-start: 1px solid var(--d2r-line); }
.d4-gold-metric-label { display: block; margin-bottom: 3px; color: var(--d2r-muted); font-size: 13px; }
.d4-gold-metric-value { margin: 0; font-family: Poppins-SemiBold, Arial, sans-serif; }
.d4-gold-purchase .prices_new { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.d4-gold-purchase .prices_new:not(.is-discounted) .oldPrice { display: none; }
.d4-gold-purchase .price { display: inline-flex; align-items: baseline; white-space: nowrap; font-variant-numeric: tabular-nums; }
.d4-gold-purchase .price :is(strong, i) { margin: 0; padding: 0; color: inherit; font: inherit; }
.d4-gold-purchase .oldPrice .price { color: #6b7280; font: 12px/1.4 Poppins-Regular, Arial, sans-serif; text-decoration: line-through; }
.d4-gold-order-card { padding: 20px; margin-top: 42px; border: 1px solid var(--d2r-line); border-radius: 12px; background: #f3f4f6; }
.d4-gold-summary-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--d2r-line); }
.d4-gold-purchase #total .truePrice .price { color: var(--d2r-price); font: 32px/1.2 Poppins-SemiBold, Arial, sans-serif; }
.d4-gold-detail-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 12px; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--d2r-line); }
.d4-gold-detail-row > :first-child { color: #6b7280; }
.d4-gold-detail-row > :last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; font-family: Poppins-SemiBold, Arial, sans-serif; }
.d4-gold-detail-row .unitprice { color: inherit; font: inherit; white-space: normal; }
.d4-gold-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.d4-gold-purchase-button { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 10px 12px; border: 1px solid var(--d2r-line); border-radius: 8px; background: #fff; color: var(--d2r-ink); font: 15px/22px Poppins-SemiBold, Arial, sans-serif; text-align: center; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.d4-gold-purchase-button.cartBuy { background: var(--d2r-accent); border-color: var(--d2r-accent); color: #fff; }
.d4-gold-purchase-button.cartBuy:hover { background: var(--d2r-accent-hover); }
.d4-gold-purchase-button.cartAdd:hover { background: var(--d2r-selected); }
.d4-gold-assurances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--d2r-line); list-style: none; color: var(--d2r-muted); font: 12px/1.4 Poppins-Medium, Arial, sans-serif; }
.d4-gold-assurances li { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; text-align: center; }
.d4-gold-assurances svg { flex: none; }
.d4-gold-card-price, .d4-gold-delivery-row { display: none; }
@media (min-width: 1025px) and (max-width: 1100px) {
    .d4-gold-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 16px; padding-inline: 16px; }
    .d4-gold-order-card { font-size: 13px; }
}
@media (max-width: 1024px) {
    .d4-gold-purchase { background: transparent; font-size: 13px; }
    .d4-gold-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 12px 16px; }
    .d4-gold-card { padding: 12px; margin: 0; border: 1px solid var(--d2r-line); border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgb(23 43 70 / 5%); }
    .d4-gold-purchase h2 { font-size: 18px; }
    .d4-gold-amount-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
    .d4-gold-amount-card > .d4-catalog-section-heading { display: contents; }
    .d4-gold-amount-card #d4-gold-amount { display: none; }
    .d4-gold-amount-card .d4-category-button { grid-area: 1 / 2; align-self: start; }
    .d4-gold-amount-card > .d4-gold-card-price { grid-area: 1 / 1; }
    .d4-gold-amount-card > :is(.d4-gold-packages, .d4-gold-stepper) { grid-column: 1 / -1; }
    .d4-gold-purchase .d4-category-button { min-height: 40px; padding-inline: 10px; gap: 4px; font-size: 12px; }
    .d4-gold-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 14px; }
    .d4-gold-card-price .truePrice .price { color: var(--d2r-price); font: 32px/1.2 Poppins-SemiBold, Arial, sans-serif; }
    .d4-gold-card-price > span { font-size: 13px; }
    .d4-gold-packages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .d4-gold-package button { min-height: 40px; font-size: 12px; }
    .d4-gold-stepper { margin-top: 16px; }
    .d4-gold-stepper .d4-gold-amount-input { font-size: 16px; }
    .d4-gold-quantity-label, .d4-gold-metrics, .d4-gold-unit-row, .d4-gold-summary-amount { display: none; }
    .d4-gold-order-card { display: flex; flex-direction: column; }
    .d4-gold-order-card > .d4-gold-detail-row { order: 1; }
    .d4-gold-order-card .d4-gold-delivery-row { display: grid; }
    .d4-gold-summary-heading { order: 2; margin-top: 10px; padding: 12px 0 0; border-top: 1px solid var(--d2r-line); border-bottom: 0; }
    .d4-gold-summary-heading h2 { font-size: 14px; }
    .d4-gold-purchase #total .truePrice .price { font-size: 20px; }
    .d4-gold-order-card .d4-gold-actions { order: 3; margin-top: 12px; }
    .d4-gold-order-card .d4-gold-assurances { display: none; }
    .d4-gold-detail-row { padding: 7px 0; border: 0; font-size: 12px; }
    .d4-gold-detail-row > :last-child { color: var(--d2r-accent); font-family: Poppins-Medium, Arial, sans-serif; }
    .d4-gold-purchase-button { font-size: 14px; }
    .d4-gold-purchase-button.cartAdd { background: #e8f0fc; color: var(--d2r-accent-hover); border-color: transparent; }
}
