/* Cart and checkout — one source of truth. */
.woocommerce-cart .site-main > .container,
.woocommerce-checkout .site-main > .container {
    max-width: var(--container-max);
    padding-inline: var(--page-gutter);
}

.pd-commerce-hero {
    margin: 28px 0 22px;
    padding: clamp(28px, 3.5vw, 48px);
    border: 1px solid rgba(236, 88, 133, .12);
    border-radius: var(--section-radius);
    background: linear-gradient(120deg, #fff8fb 0%, #fbedf3 52%, #f2ece4 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    overflow: hidden;
}

.pd-commerce-hero__eyebrow,
.pd-order-summary__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #e54f81;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.pd-commerce-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .94;
    letter-spacing: -.055em;
}

.pd-commerce-hero p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 16px;
}

.pd-commerce-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid rgba(17, 17, 17, .16);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.pd-commerce-hero__back span { transition: transform .25s ease; }
.pd-commerce-hero__back:hover span { transform: translateX(-4px); }

.pd-shipping-progress {
    margin-bottom: 22px;
    padding: 18px 22px;
    border: 1px solid rgba(236, 88, 133, .14);
    border-radius: 18px;
    background: rgba(255, 247, 251, .9);
}

.pd-shipping-progress__copy {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 13px;
}

.pd-shipping-progress__copy > div strong,
.pd-shipping-progress__copy > div span { display: block; }
.pd-shipping-progress__copy > div strong { font-size: 14px; }
.pd-shipping-progress__copy > div span { color: var(--color-muted); font-size: 13px; }
.pd-shipping-progress__icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid rgba(233, 75, 126, .16);
    border-radius: 50%;
    color: #e94b7e;
    background: linear-gradient(145deg, #fff, #fff4f8);
    box-shadow: 0 10px 28px rgba(224, 72, 124, .14);
}
.pd-shipping-progress__icon svg { display: block; width: 25px; height: 25px; }
.pd-shipping-progress__track { height: 7px; overflow: hidden; border-radius: 999px; background: #f1e8ec; }
.pd-shipping-progress__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f58ab0, #ec4f83); transition: width .3s ease; }

.pd-cart-layout,
.pd-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: clamp(26px, 4vw, 54px);
    align-items: start;
}

.pd-cart-items,
.pd-checkout-card,
.pd-checkout-summary__inner,
.pd-order-summary {
    border: 1px solid rgba(231, 94, 137, .12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(78, 44, 58, .06);
}

.pd-cart-items { padding: clamp(18px, 3vw, 34px); }
.pd-cart-items__heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pd-cart-items__heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.pd-cart-items__heading span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #e64e7f; background: #fff0f5; font-weight: 750; }

.pd-cart-item {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid #eee7ea;
}
.pd-cart-item:last-of-type { border-bottom: 0; }
.pd-cart-item__media { overflow: hidden; border-radius: 18px; background: #fbf3f6; }
.pd-cart-item__media a { display: block; }
.pd-cart-item__media img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-cart-item__main { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: 18px; }
.pd-cart-item__top { display: flex; justify-content: space-between; gap: 20px; }
.pd-cart-item__category { display: block; margin-bottom: 6px; color: #e44e80; font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.pd-cart-item h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.pd-cart-item__price { font-size: 17px; font-weight: 750; white-space: nowrap; }
.pd-cart-item__bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.pd-cart-item__quantity { display: flex; align-items: center; gap: 12px; }
.pd-cart-item__unit-price { color: var(--color-muted); font-size: 12px; }
.pd-cart-item__remove {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(228, 72, 122, .14);
    border-radius: 50%;
    color: #e4487a;
    background: #fff2f6;
    box-shadow: 0 6px 18px rgba(228, 72, 122, .08);
    transition: transform .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.pd-cart-item__remove span {
    display: block;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
}
.pd-cart-item__remove:hover {
    color: #fff;
    background: linear-gradient(135deg, #f486aa, #e9477b);
    box-shadow: 0 10px 24px rgba(228, 72, 122, .22);
    transform: translateY(-1px);
}

.pd-cart-page .quantity,
.pd-checkout .quantity { display: inline-flex; align-items: center; border: 1px solid #e4dce0; border-radius: 999px; background: #fff; }
.pd-cart-page .quantity input.qty { width: 42px; min-height: 40px; border: 0; text-align: center; background: transparent; appearance: textfield; }
.pd-cart-page .pd-qty-button { width: 38px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 17px; }

.pd-cart-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding-top: 28px; }
.pd-coupon { flex: 1; max-width: 480px; }
.pd-coupon label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 750; }
.pd-coupon__row { display: flex; gap: 8px; }
.pd-coupon input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid #ded6da; border-radius: 999px; background: #fff; }
.pd-button--outline,
.pd-cart-update { min-height: 48px; padding: 0 20px; border: 1px solid #171717; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 750; cursor: pointer; }
.pd-cart-update:disabled { opacity: .45; cursor: not-allowed; }

.pd-order-summary,
.pd-checkout-summary__inner { position: sticky; top: 116px; padding: clamp(22px, 2.4vw, 30px); }
.pd-order-summary h2,
.pd-checkout-summary h2 { margin: 0 0 20px; font-size: 28px; letter-spacing: -.04em; }
.pd-order-summary__lines { display: grid; gap: 15px; padding: 20px 0; border-block: 1px solid #eee7ea; }
.pd-order-summary__lines > div,
.pd-order-summary__total { display: flex; justify-content: space-between; gap: 20px; }
.pd-order-summary__lines span { color: var(--color-muted); font-size: 13px; }
.pd-order-summary__lines strong { font-size: 13px; text-align: right; }
.pd-order-summary__total { align-items: center; padding: 22px 0; font-size: 18px; }
.pd-order-summary__total strong { font-size: 24px; }
.pd-checkout-cta { display: flex; min-height: 56px; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border-radius: 999px; color: #fff; background: linear-gradient(110deg, #f36d9b, #ea3f78); box-shadow: 0 16px 34px rgba(231, 63, 119, .22); font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.pd-checkout-cta span { font-size: 20px; transition: transform .25s ease; }
.pd-checkout-cta:hover span { transform: translateX(5px); }
.pd-order-summary__trust { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.pd-order-summary__trust li { display: flex; align-items: center; gap: 10px; color: #5f575a; font-size: 12px; }
.pd-order-summary__trust li span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #e74d7f; background: #fff1f6; }
.pd-cart-collaterals .cart_totals { display: none; }

.pd-checkout-steps { display: flex; gap: 18px; align-items: center; }
.pd-checkout-steps span { display: flex; align-items: center; gap: 8px; color: #817579; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pd-checkout-steps b { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #d8cfd3; border-radius: 50%; font-size: 11px; }
.pd-checkout-steps .is-complete b,
.pd-checkout-steps .is-active b { border-color: transparent; color: #fff; background: linear-gradient(135deg, #f486aa, #e9477b); }
.pd-checkout-steps .is-active { color: #171717; }

.pd-checkout-main { display: grid; gap: 22px; }
.pd-checkout-card { padding: clamp(22px, 3vw, 34px); }
.pd-checkout-card__heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 26px; }
.pd-checkout-card__heading > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #e34b7c; background: #fff0f5; font-size: 11px; font-weight: 800; }
.pd-checkout-card__heading h2 { margin: 0 0 5px; font-size: 25px; letter-spacing: -.03em; }
.pd-checkout-card__heading p { margin: 0; color: var(--color-muted); font-size: 13px; }
.pd-checkout-columns { display: grid; grid-template-columns: 1fr; gap: 0; }
.pd-checkout-column h3 { margin: 0 0 18px; font-size: 17px; }

.pd-checkout .form-row { margin: 0 0 16px; padding: 0; }
.pd-checkout .form-row label { display: block; margin-bottom: 7px; color: #423b3e; font-size: 12px; font-weight: 700; }
.pd-checkout .form-row .required { color: #e64d7f; }
.pd-checkout .input-text,
.pd-checkout select,
.pd-checkout textarea,
.pd-checkout .select2-selection { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #dfd7db; border-radius: 14px; outline: 0; background: #fff; font-family: inherit; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.pd-checkout select { height: 52px; line-height: 50px; }
.pd-checkout .select2-container { width: 100%; }
.pd-checkout .select2-container .select2-selection--single { display: flex; height: 52px; align-items: center; padding: 0; }
.pd-checkout .select2-container .select2-selection--single .select2-selection__rendered { display: flex; width: 100%; height: 100%; align-items: center; padding: 0 44px 0 16px; line-height: normal; }
.pd-checkout .select2-container .select2-selection--single .select2-selection__arrow { top: 50%; right: 14px; width: 24px; height: 24px; transform: translateY(-50%); }
.pd-checkout textarea.input-text { min-height: 126px; padding-block: 14px; resize: vertical; }
.pd-checkout .input-text:focus,
.pd-checkout select:focus,
.pd-checkout textarea:focus { border-color: #ee78a0; box-shadow: 0 0 0 4px rgba(238, 92, 141, .1); }
.pd-checkout .form-row-first,
.pd-checkout .form-row-last { width: calc(50% - 8px); }
.pd-checkout .form-row-first { float: left; }
.pd-checkout .form-row-last { float: right; }
.pd-checkout .woocommerce-billing-fields__field-wrapper::after,
.pd-checkout .woocommerce-shipping-fields__field-wrapper::after { display: table; clear: both; content: ''; }

.pd-checkout-summary__inner { overflow: hidden; }
.pd-checkout-summary table.shop_table { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.pd-checkout-summary table.shop_table th,
.pd-checkout-summary table.shop_table td { padding: 14px 0; border: 0; border-bottom: 1px solid #eee7ea; background: transparent; font-size: 13px; }
.pd-checkout-summary table.shop_table th { text-align: left; font-weight: 650; }
.pd-checkout-summary table.shop_table td:last-child,
.pd-checkout-summary table.shop_table th:last-child { text-align: right; }
.pd-checkout-summary .order-total th,
.pd-checkout-summary .order-total td { padding-top: 20px; border-bottom: 0; font-size: 18px; }
.pd-checkout-summary .order-total strong { font-size: 22px; }
.pd-checkout-summary #payment { margin-top: 16px; border: 0; border-radius: 18px; background: #fbf7f9; }
.pd-checkout-summary #payment ul.payment_methods { margin: 0; padding: 10px 18px; border: 0; }
.pd-checkout-summary #payment ul.payment_methods li { padding: 12px 0; border-bottom: 1px solid #ece4e8; }
.pd-checkout-summary #payment ul.payment_methods li:last-child { border-bottom: 0; }
.pd-checkout-summary #payment div.payment_box { margin: 10px 0 0; padding: 14px; border-radius: 12px; color: #5f565a; background: #fff; font-size: 12px; }
.pd-checkout-summary #payment div.payment_box::before { display: none; }
.pd-checkout-summary #payment .place-order { margin: 0; padding: 14px; }
.pd-checkout-summary #place_order { width: 100%; min-height: 56px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(110deg, #f36d9b, #ea3f78); box-shadow: 0 16px 34px rgba(231, 63, 119, .22); font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.pd-checkout-summary .woocommerce-privacy-policy-text { color: #776e72; font-size: 11px; line-height: 1.6; }
.pd-checkout-security { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px; border-radius: 15px; background: #fff3f7; }
.pd-checkout-security > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #e74d7f; background: #fff; }
.pd-checkout-security p { margin: 0; color: #6e6468; font-size: 11px; line-height: 1.55; }
.pd-checkout-security strong { display: block; color: #211d1f; font-size: 12px; }

.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle { margin: 20px 0; }
.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info { margin: 0; padding: 16px 20px; border: 1px solid rgba(231, 74, 126, .15); border-radius: 16px; color: #4e4649; background: #fff7fa; }
.woocommerce-form-coupon-toggle .woocommerce-info::before,
.woocommerce-form-login-toggle .woocommerce-info::before { display: none; }
.woocommerce-form-coupon,
.woocommerce-form-login.login { margin: -8px 0 22px; padding: 20px; border: 1px solid #eee4e8; border-radius: 18px; background: #fff; }

.pd-empty-commerce { max-width: 680px; margin: 60px auto; padding: 56px 28px; border-radius: 26px; text-align: center; background: linear-gradient(135deg, #fff6fa, #f6ece8); }
.pd-empty-commerce__icon { display: grid; width: 76px; height: 76px; margin: 0 auto 20px; place-items: center; border-radius: 50%; color: #e84e80; background: #fff; font-size: 32px; box-shadow: 0 14px 40px rgba(223, 73, 123, .12); }
.pd-empty-commerce h2 { margin: 0 0 10px; font-size: 36px; }
.pd-empty-commerce p { margin: 0 auto 24px; color: var(--color-muted); }
.pd-empty-commerce .pd-checkout-cta { max-width: 330px; margin: 0 auto; }

@media (max-width: 991px) {
    .pd-cart-layout,
    .pd-checkout-layout { grid-template-columns: 1fr; }
    .pd-order-summary,
    .pd-checkout-summary__inner { position: static; }
    .pd-checkout-main { order: 1; }
    .pd-checkout-summary { order: 2; }
}

@media (max-width: 767px) {
    .woocommerce-cart .site-main > .container,
    .woocommerce-checkout .site-main > .container { padding-inline: 16px; }
    .pd-commerce-hero { margin-top: 16px; padding: 28px 22px; align-items: flex-start; flex-direction: column; gap: 20px; }
    .pd-commerce-hero h1 { font-size: 48px; }
    .pd-commerce-hero p { font-size: 14px; }
    .pd-checkout-steps { width: 100%; justify-content: space-between; gap: 8px; overflow-x: auto; }
    .pd-checkout-steps span { font-size: 10px; }
    .pd-cart-item { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
    .pd-cart-item__top { gap: 10px; }
    .pd-cart-item h3 { font-size: 17px; }
    .pd-cart-item__price { font-size: 14px; }
    .pd-cart-item__bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
    .pd-cart-item__unit-price { display: none; }
    .pd-cart-actions { align-items: stretch; flex-direction: column; }
    .pd-coupon { max-width: none; }
    .pd-coupon__row { flex-direction: column; }
    .pd-cart-update,
    .pd-button--outline { width: 100%; }
    .pd-checkout-card,
    .pd-cart-items,
    .pd-order-summary,
    .pd-checkout-summary__inner { border-radius: 20px; }
    .pd-checkout .form-row-first,
    .pd-checkout .form-row-last { width: 100%; float: none; }
    .pd-order-summary__lines > div,
    .pd-order-summary__total { gap: 12px; }
}

@media (max-width: 479px) {
    .pd-cart-item { grid-template-columns: 82px minmax(0, 1fr); }
    .pd-checkout-card__heading h2 { font-size: 21px; }
}

/* Cart quantity — single source for cart-line controls. */
.pd-cart-quantity {
    display: inline-grid;
    grid-template-columns: 40px 46px 40px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e6dce1;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(76, 40, 55, .05);
}
.pd-cart-quantity[aria-busy="true"] { opacity: .62; pointer-events: none; }
.pd-cart-quantity__button,
.pd-cart-quantity__input {
    width: 100%;
    height: 42px;
    border: 0;
    color: #171717;
    background: transparent;
    font: inherit;
    text-align: center;
}
.pd-cart-quantity__button {
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
    transition: color .2s ease, background-color .2s ease;
}
.pd-cart-quantity__button:hover { color: #e7477c; background: #fff1f6; }
.pd-cart-quantity__input {
    padding: 0;
    outline: 0;
    font-size: 14px;
    font-weight: 750;
    appearance: textfield;
}
.pd-cart-quantity__input::-webkit-inner-spin-button,
.pd-cart-quantity__input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.pd-cart-actions__status { min-height: 18px; color: #7b7074; font-size: 12px; }

/* Global WooCommerce feedback — compact toasts instead of full-width boxes. */
.pd-toast-region {
    position: fixed;
    z-index: 10050;
    top: 92px;
    right: 22px;
    display: grid;
    width: min(390px, calc(100vw - 32px));
    gap: 10px;
    pointer-events: none;
}
.admin-bar .pd-toast-region { top: 124px; }
.pd-toast {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 12px;
    align-items: center;
    padding: 14px 14px 14px 13px;
    border: 1px solid rgba(231, 75, 126, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 18px 48px rgba(63, 35, 47, .16);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(-10px) scale(.98);
    transition: opacity .24s ease, transform .24s ease;
    backdrop-filter: blur(16px);
}
.pd-toast.is-visible { opacity: 1; transform: none; }
.pd-toast.is-leaving { opacity: 0; transform: translateY(-8px) scale(.98); }
.pd-toast__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #f486aa, #e9477b);
    font-size: 15px;
    font-weight: 850;
}
.pd-toast--error .pd-toast__icon { background: linear-gradient(135deg, #ff806f, #dc334f); }
.pd-toast--notice .pd-toast__icon { background: linear-gradient(135deg, #a995f3, #7763d6); }
.pd-toast__content { min-width: 0; color: #302a2d; font-size: 13px; line-height: 1.45; }
.pd-toast__content p { margin: 0; }
.pd-toast__content a { color: #df3f76; font-weight: 800; text-decoration: none; }
.pd-toast__close {
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #6d6266;
    background: #faf4f6;
    cursor: pointer;
    font-size: 17px;
}

/* Empty cart. */
.pd-empty-commerce--cart { margin-block: clamp(42px, 7vw, 90px); }
.pd-empty-commerce__icon svg { width: 34px; height: 34px; }
.pd-empty-commerce__eyebrow,
.pd-thankyou__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #e44c7e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.pd-empty-commerce h1 { margin: 0 0 12px; font-size: clamp(42px, 7vw, 70px); letter-spacing: -.055em; }

/* Premium order received screen. */
.pd-thankyou {
    max-width: 920px;
    margin: clamp(32px, 6vw, 88px) auto;
    padding: clamp(34px, 7vw, 74px);
    border: 1px solid rgba(230, 74, 126, .12);
    border-radius: 32px;
    text-align: center;
    background:
        radial-gradient(circle at 88% 12%, rgba(244, 156, 188, .24), transparent 26%),
        radial-gradient(circle at 10% 90%, rgba(198, 185, 245, .22), transparent 28%),
        linear-gradient(135deg, #fff8fb, #f7efe9);
    box-shadow: 0 28px 80px rgba(80, 42, 58, .08);
}
.pd-thankyou__icon {
    display: grid;
    width: 78px;
    height: 78px;
    margin: 0 auto 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #f486aa, #e9477b);
    box-shadow: 0 18px 40px rgba(231, 71, 123, .22);
    font-size: 28px;
    font-weight: 850;
}
.pd-thankyou__icon--error { background: linear-gradient(135deg, #ff806f, #dc334f); }
.pd-thankyou h1 { margin: 0 0 12px; font-size: clamp(50px, 8vw, 86px); letter-spacing: -.06em; }
.pd-thankyou > p { max-width: 650px; margin: 0 auto 32px; color: #6f6569; font-size: 16px; line-height: 1.7; }
.pd-thankyou__meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 34px 0;
    overflow: hidden;
    border: 1px solid rgba(75, 52, 62, .1);
    border-radius: 20px;
    background: rgba(255, 255, 255, .7);
}
.pd-thankyou__meta > div { padding: 20px 16px; border-right: 1px solid rgba(75, 52, 62, .08); }
.pd-thankyou__meta > div:last-child { border-right: 0; }
.pd-thankyou__meta span { display: block; margin-bottom: 7px; color: #8a7e83; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pd-thankyou__meta strong { font-size: 15px; }
.pd-thankyou__actions { display: flex; max-width: 620px; margin: 0 auto; gap: 12px; justify-content: center; }
.pd-thankyou__actions > * { flex: 1; }
.pd-thankyou__note {
    display: flex;
    max-width: 650px;
    margin: 28px auto 0;
    padding: 18px;
    gap: 13px;
    align-items: flex-start;
    border-radius: 18px;
    text-align: left;
    background: rgba(255, 255, 255, .68);
}
.pd-thankyou__note > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #e64d7e; background: #fff0f5; }
.pd-thankyou__note p { margin: 0; color: #6e6468; font-size: 12px; line-height: 1.55; }
.pd-thankyou__note strong { display: block; margin-bottom: 3px; color: #241f21; font-size: 13px; }
.pd-thankyou .woocommerce-order-details,
.pd-thankyou .woocommerce-customer-details { margin-top: 36px; padding: 28px; border-radius: 20px; text-align: left; background: rgba(255, 255, 255, .72); }

@media (max-width: 767px) {
    .pd-toast-region { top: 78px; right: 16px; }
    .admin-bar .pd-toast-region { top: 110px; }
    .pd-cart-item__quantity { align-items: flex-start; flex-direction: column; gap: 9px; }
    .pd-cart-quantity { grid-template-columns: 38px 42px 38px; }
    .pd-thankyou { padding: 38px 20px; border-radius: 24px; }
    .pd-thankyou__meta { grid-template-columns: 1fr 1fr; }
    .pd-thankyou__meta > div:nth-child(2) { border-right: 0; }
    .pd-thankyou__meta > div:nth-child(-n+2) { border-bottom: 1px solid rgba(75, 52, 62, .08); }
    .pd-thankyou__actions { flex-direction: column; }
}

/* Checkout coupon — compact disclosure component. */
.pd-checkout-coupon {
    margin: 0 0 20px;
    border: 1px solid rgba(231, 94, 137, .16);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(78, 44, 58, .04);
}
.pd-checkout-coupon__toggle {
    display: grid;
    width: 100%;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 14px;
    align-items: center;
    padding: 15px 18px;
    border: 0;
    border-radius: inherit;
    color: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}
.pd-checkout-coupon__toggle:focus-visible {
    outline: 2px solid #ee78a0;
    outline-offset: 3px;
}
.pd-checkout-coupon__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #e64d7f;
    background: #fff0f5;
    font-size: 15px;
    font-weight: 800;
}
.pd-checkout-coupon__copy strong,
.pd-checkout-coupon__copy small { display: block; }
.pd-checkout-coupon__copy strong { margin-bottom: 3px; font-size: 14px; }
.pd-checkout-coupon__copy small { color: var(--color-muted); font-size: 12px; }
.pd-checkout-coupon__chevron {
    color: #6f666a;
    font-size: 22px;
    line-height: 1;
    transition: transform .2s ease;
}
.pd-checkout-coupon.is-open .pd-checkout-coupon__chevron { transform: rotate(180deg); }
.pd-checkout-coupon__panel[hidden] { display: none; }
.pd-checkout-coupon__panel {
    padding: 0 18px 18px;
}
.pd-checkout-coupon__form.woocommerce-form-coupon {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.pd-checkout-coupon__form input {
    min-width: 0;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #ded6da;
    border-radius: 999px;
    outline: 0;
    background: #fff;
    font: inherit;
}
.pd-checkout-coupon__form input:focus {
    border-color: #ee78a0;
    box-shadow: 0 0 0 4px rgba(238, 92, 141, .1);
}
.pd-checkout-coupon__form button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(110deg, #f36d9b, #ea3f78);
    box-shadow: 0 10px 24px rgba(231, 63, 119, .16);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Checkout summary stays visible and contains both payment methods and CTA. */
.pd-checkout,
.pd-checkout-layout { overflow: visible; }
.pd-checkout-summary {
    position: sticky;
    top: 116px;
    align-self: start;
}
.pd-checkout-summary__inner {
    position: static;
    overflow: visible;
}
.pd-checkout-summary .woocommerce-checkout-review-order-table { margin-bottom: 18px; }
.pd-checkout-summary .woocommerce-checkout-payment { display: block; }
.pd-checkout-summary #payment .place-order { display: block; }
.pd-checkout-summary #place_order {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .pd-checkout-summary { position: static; top: auto; }
}

@media (max-width: 767px) {
    .pd-checkout-coupon__form.woocommerce-form-coupon { grid-template-columns: 1fr; }
    .pd-checkout-coupon__form button { width: 100%; }
}

/* Mobile cart and checkout flow */
@media (max-width: 767px) {
    .woocommerce-cart .site-main > .container,
    .woocommerce-checkout .site-main > .container {
        width: 100%;
        max-width: none;
        padding-inline: 16px;
    }

    .woocommerce-cart .woocommerce,
    .woocommerce-checkout .woocommerce {
        width: 100%;
        overflow: visible;
    }

    .pd-commerce-hero {
        margin: 14px 0 16px;
        padding: 24px 20px;
        gap: 16px;
        border-radius: 22px;
    }

    .pd-commerce-hero__eyebrow { margin-bottom: 8px; font-size: 10px; }
    .pd-commerce-hero h1 { font-size: clamp(42px, 13vw, 56px); line-height: .96; }
    .pd-commerce-hero p { margin-top: 12px; font-size: 14px; line-height: 1.5; }
    .pd-commerce-hero__back {
        min-height: 44px;
        padding: 0 16px;
        align-self: flex-start;
        font-size: 12px;
    }

    .pd-shipping-progress {
        margin-bottom: 16px;
        padding: 15px 16px;
        border-radius: 18px;
    }
    .pd-shipping-progress__copy { gap: 12px; margin-bottom: 11px; }
    .pd-shipping-progress__icon { width: 40px; height: 40px; flex-basis: 40px; }
    .pd-shipping-progress__icon svg { width: 22px; height: 22px; }
    .pd-shipping-progress__copy > div strong { font-size: 13px; }
    .pd-shipping-progress__copy > div span { font-size: 12px; }

    .pd-cart-layout,
    .pd-checkout-layout { gap: 16px; }

    .pd-cart-items,
    .pd-order-summary,
    .pd-checkout-card,
    .pd-checkout-summary__inner {
        border-radius: 20px;
        box-shadow: 0 14px 38px rgba(78, 44, 58, .055);
    }

    .pd-cart-items { padding: 20px 16px; }
    .pd-cart-items__heading { margin-bottom: 4px; }
    .pd-cart-items__heading h2 { font-size: 27px; }
    .pd-cart-items__heading span { width: 32px; height: 32px; font-size: 13px; }

    .pd-cart-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 13px;
        padding: 18px 0;
    }
    .pd-cart-item__media { border-radius: 14px; }
    .pd-cart-item__main { gap: 13px; }
    .pd-cart-item__top { align-items: flex-start; gap: 8px; }
    .pd-cart-item__category { margin-bottom: 4px; font-size: 9px; }
    .pd-cart-item h3 { font-size: 17px; line-height: 1.2; }
    .pd-cart-item__price { font-size: 15px; line-height: 1.2; }
    .pd-cart-item__bottom {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 38px;
        align-items: center;
        gap: 10px;
    }
    .pd-cart-item__quantity { align-items: flex-start; gap: 7px; }
    .pd-cart-item__unit-price { display: block; font-size: 11px; }
    .pd-cart-item__remove { width: 36px; height: 36px; justify-self: end; }

    .pd-cart-quantity { grid-template-columns: 38px 42px 38px; }
    .pd-cart-quantity__button,
    .pd-cart-quantity__input { height: 40px; }

    .pd-cart-actions { gap: 14px; padding-top: 20px; }
    .pd-coupon label { margin-bottom: 8px; }
    .pd-coupon__row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }
    .pd-coupon input { min-height: 46px; }
    .pd-button--outline { width: auto; min-height: 46px; padding-inline: 16px; }

    .pd-order-summary,
    .pd-checkout-summary__inner { padding: 22px 18px; }
    .pd-order-summary h2,
    .pd-checkout-summary h2 { margin-bottom: 16px; font-size: 27px; }
    .pd-order-summary__lines { gap: 13px; padding: 16px 0; }
    .pd-order-summary__total { padding: 18px 0; }
    .pd-order-summary__total strong { font-size: 22px; }
    .pd-checkout-cta { min-height: 54px; font-size: 12px; }
    .pd-order-summary__trust { margin-top: 18px; }

    .pd-checkout-layout {
        display: flex;
        flex-direction: column;
    }
    .pd-checkout-main { order: 1; gap: 16px; }
    .pd-checkout-summary { order: 2; position: static; width: 100%; }
    .pd-checkout-summary__inner { position: static; }

    .pd-checkout-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        overflow: visible;
    }
    .pd-checkout-steps span {
        min-width: 0;
        flex-direction: column;
        justify-content: flex-start;
        gap: 6px;
        text-align: center;
        white-space: normal;
        font-size: 10px;
        line-height: 1.25;
    }
    .pd-checkout-steps b { width: 31px; height: 31px; }

    .pd-checkout-coupon { margin-bottom: 16px; border-radius: 18px; }
    .pd-checkout-coupon__toggle {
        grid-template-columns: 40px minmax(0, 1fr) 22px;
        gap: 12px;
        padding: 14px 15px;
    }
    .pd-checkout-coupon__icon { width: 40px; height: 40px; }
    .pd-checkout-coupon__copy strong { font-size: 14px; }
    .pd-checkout-coupon__panel { padding: 0 15px 15px; }

    .pd-checkout-card { padding: 22px 18px; }
    .pd-checkout-card__heading { gap: 12px; margin-bottom: 22px; }
    .pd-checkout-card__heading > span { width: 36px; height: 36px; }
    .pd-checkout-card__heading h2 { font-size: 22px; line-height: 1.15; }
    .pd-checkout-card__heading p { font-size: 12px; line-height: 1.45; }
    .pd-checkout-column h3 { margin-bottom: 15px; font-size: 17px; }

    .pd-checkout .form-row { margin-bottom: 14px; }
    .pd-checkout .form-row-first,
    .pd-checkout .form-row-last { width: 100%; float: none; }
    .pd-checkout .form-row label { margin-bottom: 6px; font-size: 12px; }
    .pd-checkout .input-text,
    .pd-checkout select,
    .pd-checkout textarea,
    .pd-checkout .select2-selection {
        min-height: 50px;
        padding-inline: 14px;
        border-radius: 13px;
        font-size: 16px;
    }
    .pd-checkout select,
    .pd-checkout .select2-container .select2-selection--single { height: 50px; }
    .pd-checkout select { line-height: 48px; }
    .pd-checkout textarea.input-text { min-height: 118px; padding-block: 13px; }

    .pd-checkout-summary table.shop_table th,
    .pd-checkout-summary table.shop_table td { padding: 13px 0; font-size: 13px; }
    .pd-checkout-summary .order-total th,
    .pd-checkout-summary .order-total td { font-size: 17px; }
    .pd-checkout-summary .order-total strong { font-size: 21px; }
    .pd-checkout-summary #payment { margin-top: 14px; border-radius: 16px; }
    .pd-checkout-summary #payment ul.payment_methods { padding: 10px 14px; }
    .pd-checkout-summary #payment .place-order { padding: 16px 14px; }
    .pd-checkout-summary #place_order { min-height: 56px; }
    .pd-checkout-security { margin-top: 14px; padding: 14px; }

    .pd-empty-commerce { margin: 28px auto 42px; padding: 38px 20px; border-radius: 22px; }
    .pd-empty-commerce h2 { font-size: 30px; }

    .woocommerce-cart a,
    .woocommerce-cart button,
    .woocommerce-cart input,
    .woocommerce-checkout a,
    .woocommerce-checkout button,
    .woocommerce-checkout input,
    .woocommerce-checkout select,
    .woocommerce-checkout textarea {
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 389px) {
    .pd-commerce-hero { padding-inline: 17px; }
    .pd-cart-items { padding-inline: 14px; }
    .pd-cart-item { grid-template-columns: 78px minmax(0, 1fr); gap: 11px; }
    .pd-cart-item h3 { font-size: 16px; }
    .pd-coupon__row { grid-template-columns: 1fr; }
    .pd-button--outline { width: 100%; }
    .pd-checkout-card,
    .pd-order-summary,
    .pd-checkout-summary__inner { padding-inline: 15px; }
}

/* Coupon button states */
.pd-coupon__row .pd-button--outline,
.pd-coupon__row button[name="apply_coupon"] {
    color: #171416;
    -webkit-text-fill-color: #171416;
    opacity: 1;
    visibility: visible;
    text-indent: 0;
    white-space: nowrap;
}
.pd-coupon__row .pd-button--outline:hover,
.pd-coupon__row button[name="apply_coupon"]:hover {
    color: #fff;
    -webkit-text-fill-color: #fff;
    border-color: #e9477b;
    background: linear-gradient(135deg, #f486aa, #e9477b);
}
@media (max-width: 767px) {
    .pd-coupon__row .pd-button--outline,
    .pd-coupon__row button[name="apply_coupon"] {
        min-width: 108px;
        padding-inline: 14px;
        font-size: 11px;
        line-height: 1.2;
    }
}
