
/* GRANDTHAI WooCommerce purchase flow prototype v1 */
.wc-prototype{background:#f7efd9;color:var(--green)}
.wc-main{padding-top:104px;min-height:70vh}
.wc-breadcrumbs{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:18px 0 8px;color:#718070;font-size:12px;font-weight:800}
.wc-breadcrumbs a:hover{color:var(--burgundy)}
.wc-flow-steps{max-width:760px;margin:18px auto 32px;padding:0;display:grid;grid-template-columns:repeat(4,1fr);list-style:none;position:relative}
.wc-flow-steps::before{content:"";position:absolute;top:17px;left:12.5%;right:12.5%;height:2px;background:rgba(40,78,55,.14)}
.wc-flow-steps li{position:relative;z-index:1;display:grid;justify-items:center;gap:7px;color:#839080;font-size:11px}
.wc-flow-steps span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#efe4c5;border:1px solid rgba(40,78,55,.16);font-weight:900}
.wc-flow-steps .is-active,.wc-flow-steps .is-complete{color:var(--green)}
.wc-flow-steps .is-active span{background:var(--burgundy);border-color:var(--burgundy);color:var(--cream)}
.wc-flow-steps .is-complete span{background:var(--green);border-color:var(--green);color:var(--cream)}
.wc-page-head{padding:34px 0 28px;text-align:center}
.wc-page-head h1,.wc-status-hero h1,.wc-state-section h1{margin:0 0 12px;font-size:clamp(38px,5vw,66px);line-height:1;color:var(--green);letter-spacing:-.04em}
.wc-page-head p:last-child,.wc-status-hero p,.wc-state-section p{max-width:740px;margin:0 auto;color:#5a705f}
.wc-status-hero{padding:28px 0 62px}
.wc-status-hero__grid{display:grid;grid-template-columns:1.02fr .98fr;gap:24px;align-items:center;padding:38px;border-radius:34px;background:var(--cream);box-shadow:0 22px 64px rgba(40,78,55,.12)}
.wc-status-hero__grid figure{margin:0;min-height:400px;border-radius:27px;overflow:hidden;background:#d7c38f}
.wc-status-hero__grid img{width:100%;height:100%;object-fit:contain}
.wc-status-hero__grid p:not(.section-label){margin:0 0 24px}
.wc-added-card{display:grid;grid-template-columns:auto 1fr auto auto;gap:20px;align-items:center;padding:24px 28px;border-radius:25px;background:var(--cream-pale);border:1px solid rgba(40,78,55,.1)}
.wc-added-card__icon,.wc-state-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--green);color:var(--cream);font-size:28px;font-weight:900}
.wc-added-card h2{margin:0 0 3px;font-size:23px}.wc-added-card p{margin:0;color:#647767}.wc-added-card>strong{font-size:22px;color:var(--burgundy)}
.wc-checkout-section{padding:18px 0 78px}
.wc-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.65fr);gap:24px;align-items:start}
.wc-content-card,.wc-form-card,.wc-summary-card{border:1px solid rgba(40,78,55,.1);border-radius:28px;background:var(--cream-pale);box-shadow:0 16px 44px rgba(40,78,55,.07)}
.wc-content-card{padding:24px}
.wc-product-line{display:grid;grid-template-columns:190px minmax(0,1fr) auto;gap:22px;align-items:center;padding-bottom:24px;border-bottom:1px solid rgba(40,78,55,.12)}
.wc-product-line figure{margin:0;aspect-ratio:1.45/1;border-radius:20px;overflow:hidden;background:#d7c38f}.wc-product-line figure img{width:100%;height:100%;object-fit:contain}
.wc-eyebrow{margin:0 0 6px;color:var(--burgundy);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.wc-product-line h2{margin:0 0 11px;font-size:25px;line-height:1.08}.wc-product-options{display:flex;flex-wrap:wrap;gap:6px 14px;color:#647767;font-size:11px}.wc-product-options span{white-space:nowrap}
.wc-text-button,.wc-remove{margin-top:12px;padding:0;border:0;background:none;color:var(--burgundy);font-weight:900;cursor:pointer}.wc-text-button:hover,.wc-remove:hover{text-decoration:underline}
.wc-product-line__aside{display:grid;justify-items:end;gap:12px}.wc-qty{display:grid;grid-template-columns:34px 44px 34px;border:1px solid rgba(40,78,55,.18);border-radius:999px;overflow:hidden;background:#f8e9c4}.wc-qty button{border:0;background:none;color:var(--green);font-size:20px;cursor:pointer}.wc-qty input{width:100%;border:0;background:none;text-align:center;font-weight:900;-moz-appearance:textfield}.wc-qty input::-webkit-inner-spin-button{display:none}.wc-line-price{font-size:21px;color:var(--burgundy)}
.wc-cross-sell{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;padding:18px;border-radius:20px;background:#f8e9c4}.wc-cross-sell h3{margin:0 0 3px}.wc-cross-sell p{margin:0;color:#647767;font-size:12px}
.wc-summary-card{position:sticky;top:104px;padding:27px}.wc-summary-card h2{margin:0 0 20px;font-size:36px}.wc-summary-card dl{margin:0}.wc-summary-card dl>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid rgba(40,78,55,.1)}.wc-summary-card dt{color:#647767}.wc-summary-card dd{margin:0;font-weight:900}.wc-summary-card__discount dd{color:var(--burgundy)}
.wc-coupon{margin:20px 0}.wc-coupon>label{display:block;margin-bottom:7px;font-size:12px;font-weight:900}.wc-coupon>div{display:grid;grid-template-columns:1fr auto;border:1px solid rgba(40,78,55,.2);border-radius:14px;overflow:hidden;background:#f8e9c4}.wc-coupon input{min-width:0;border:0;background:none;padding:13px}.wc-coupon button{border:0;background:var(--green);color:var(--cream);padding:0 14px;font-weight:900;cursor:pointer}.wc-coupon small{display:block;min-height:19px;margin-top:6px;color:#647767}
.wc-summary-total{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin:22px 0}.wc-summary-total span{font-weight:900}.wc-summary-total strong{font-size:30px;color:var(--burgundy)}.wc-summary-card>.btn{width:100%}.wc-text-link{display:block;margin-top:14px;text-align:center;color:var(--green);font-weight:900}.wc-text-link:hover{color:var(--burgundy)}
.wc-safe-note{display:flex;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid rgba(40,78,55,.12)}.wc-safe-note>span{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:rgba(40,78,55,.1)}.wc-safe-note p{margin:0}.wc-safe-note b,.wc-safe-note small{display:block}.wc-safe-note small{margin-top:3px;color:#718071;font-size:10px}
.wc-checkout-form{display:grid;gap:18px}.wc-form-card{padding:28px}.wc-form-card__head{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;margin-bottom:24px}.wc-form-card__head>span{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--green);color:var(--cream);font-weight:900}.wc-form-card h2{margin:0 0 4px;font-size:26px}.wc-form-card__head p{margin:0;color:#6a7c6d;font-size:12px}
.wc-fields{display:grid;gap:14px}.wc-fields--2{grid-template-columns:1fr 1fr}.wc-field--wide{grid-column:1/-1}.wc-fields label>span,.wc-coupon label{display:block;margin-bottom:7px;font-size:11px;font-weight:900}.wc-fields input,.wc-fields select,.wc-fields textarea{width:100%;border:1px solid rgba(40,78,55,.19);border-radius:14px;background:#f8e9c4;padding:13px 14px;color:var(--green);font:inherit;outline:none}.wc-fields textarea{resize:vertical}.wc-fields input:focus,.wc-fields select:focus,.wc-fields textarea:focus{border-color:var(--green);box-shadow:0 0 0 4px rgba(40,78,55,.08)}.wc-fields label>small{display:block;margin-top:5px;color:#748176;font-size:9px}
.wc-choice-grid,.wc-payment-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wc-choice-grid label,.wc-payment-choice label,.wc-branch-choice label{cursor:pointer}.wc-choice-grid input,.wc-payment-choice input,.wc-branch-choice input{position:absolute;opacity:0}.wc-choice-grid label>span,.wc-payment-choice label>span,.wc-branch-choice label>span{display:grid;gap:5px;min-height:105px;padding:18px;border:1px solid rgba(40,78,55,.16);border-radius:18px;background:#f8e9c4}.wc-choice-grid input:checked+span,.wc-payment-choice input:checked+span,.wc-branch-choice input:checked+span{border-color:var(--green);box-shadow:0 0 0 4px rgba(40,78,55,.08);background:#f7efda}.wc-choice-grid small,.wc-payment-choice small,.wc-branch-choice small{color:#6f7d71}.wc-choice-grid em{color:var(--burgundy);font-style:normal;font-size:11px;font-weight:900}.wc-format-panel{margin-top:18px;padding-top:20px;border-top:1px solid rgba(40,78,55,.12)}
.wc-branch-choice label>span{min-height:auto}.wc-payment-choice label>span{min-height:84px}.wc-legal-confirmation{display:grid;gap:5px;padding:6px 4px}.wc-agreement{display:flex;gap:10px;align-items:flex-start;color:#5f7163;font-size:12px}.wc-agreement input{flex:0 0 auto;width:18px;height:18px;margin:0;accent-color:var(--green)}.wc-agreement a,.wc-legal-note a{color:var(--burgundy);text-decoration:underline}.wc-legal-note{margin:0 0 0 28px;color:#738075;font-size:10px;line-height:1.45}.wc-mobile-submit{display:none}.wc-form-status{min-height:24px;margin:0;color:var(--burgundy);font-weight:800}
.wc-summary-card--checkout .wc-order-product{display:grid;grid-template-columns:72px 1fr auto;gap:10px;align-items:center;margin-bottom:20px}.wc-order-product img{width:72px;height:58px;object-fit:contain;border-radius:12px;background:#d7c38f}.wc-order-product b,.wc-order-product small{display:block}.wc-order-product small{margin-top:3px;color:#6d7c6f;font-size:9px}.wc-order-product>strong{color:var(--burgundy)}.wc-summary-help{margin:18px 0 0;color:#6d7c6f;font-size:10px;line-height:1.5}
.wc-state-section{padding:48px 0 88px}.wc-payment-card,.wc-result-card{max-width:790px;margin:0 auto;padding:46px;border:1px solid rgba(40,78,55,.11);border-radius:34px;background:var(--cream-pale);box-shadow:0 22px 64px rgba(40,78,55,.1);text-align:center}.wc-payment-card .wc-state-icon,.wc-result-card .wc-state-icon{margin:0 auto 20px}.wc-state-icon--payment{background:var(--burgundy)}.wc-payment-card>p,.wc-result-card>p{margin:0 auto 22px}.wc-payment-method-preview{display:flex;justify-content:space-between;gap:20px;margin:25px 0;padding:18px 20px;border-radius:18px;background:#f8e9c4}.wc-payment-card>.btn{min-width:280px}.wc-payment-card>small{display:block;margin-top:20px;color:#748176}
.wc-result-card--error .wc-state-icon{background:var(--burgundy)}.wc-result-card--empty .wc-state-icon{background:#d6bd80;color:var(--green)}.wc-result-details{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:27px 0}.wc-result-details>div{padding:17px;border-radius:17px;background:#f8e9c4}.wc-result-details span,.wc-result-details b{display:block}.wc-result-details span{margin-bottom:5px;color:#718071;font-size:10px}.wc-result-card .button-row{justify-content:center}.wc-payment-recovery-actions>form{display:flex}.wc-payment-recovery-actions>form .btn{height:100%}.wc-support{margin-top:30px;padding-top:22px;border-top:1px solid rgba(40,78,55,.12)}.wc-support p{margin:5px auto 0}.wc-support>a{color:var(--burgundy);font-weight:900}.wc-support-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:16px}.wc-support-actions a{min-width:118px;padding:11px 18px;border:1px solid rgba(40,78,55,.28);border-radius:999px;background:#f8e9c4;color:var(--green);font-size:12px;font-weight:900}.wc-support-actions a:hover{border-color:var(--green);background:var(--green);color:var(--cream)}
.wc-certificate-access{margin-top:26px;padding:22px;border-radius:22px;background:#f8e9c4;text-align:left}.wc-certificate-access h2{margin:2px 0 8px;color:var(--green);font-size:24px}.wc-certificate-access>p:not(.wc-eyebrow){margin:0;color:#536257;font-size:13px;line-height:1.55}.wc-certificate-access .button-row{justify-content:flex-start;margin-top:16px}.wc-certificate-access .btn{min-height:46px;padding:12px 22px;font-size:12px}
.wc-empty-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:30px}.wc-empty-grid a{padding:12px;border:1px solid rgba(40,78,55,.12);border-radius:20px;background:#f8e9c4;text-align:left;transition:.2s ease}.wc-empty-grid a:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(40,78,55,.1)}.wc-empty-grid img{width:100%;aspect-ratio:1.45/1;object-fit:contain;border-radius:14px;background:#d7c38f}.wc-empty-grid b,.wc-empty-grid span{display:block}.wc-empty-grid b{margin-top:10px}.wc-empty-grid span{margin-top:3px;color:#718071;font-size:10px}
.wc-mini-cart{position:fixed;z-index:150;top:0;right:0;width:min(430px,100%);height:100dvh;padding:32px;background:var(--cream-pale);box-shadow:-20px 0 60px rgba(0,0,0,.24);transform:translateX(105%);transition:.25s ease}.wc-mini-cart.is-open{transform:none}.wc-drawer-backdrop{position:fixed;z-index:149;inset:0;background:rgba(17,37,24,.6)}.wc-mini-cart__close{position:absolute;right:20px;top:18px;width:40px;height:40px;border:0;border-radius:50%;background:var(--green);color:var(--cream);font-size:25px;cursor:pointer}.wc-mini-cart h2{margin:0 0 24px;font-size:34px}.wc-mini-cart__item{display:grid;grid-template-columns:76px 1fr auto;gap:10px;align-items:center;padding:14px 0;border-top:1px solid rgba(40,78,55,.12);border-bottom:1px solid rgba(40,78,55,.12)}.wc-mini-cart__item img{width:76px;height:60px;object-fit:contain;border-radius:12px;background:#d7c38f}.wc-mini-cart__item b,.wc-mini-cart__item small{display:block}.wc-mini-cart__item small{margin-top:3px;color:#6d7c6f}.wc-mini-cart__total{display:flex;justify-content:space-between;margin:24px 0}.wc-mini-cart__total b{font-size:26px;color:var(--burgundy)}.wc-mini-cart>.btn{width:100%}
@media(max-width:920px){.wc-main{padding-top:83px}.wc-layout{grid-template-columns:1fr}.wc-summary-card{position:static;top:auto}.wc-status-hero__grid{grid-template-columns:1fr}.wc-status-hero__grid figure{min-height:300px}.wc-product-line{grid-template-columns:150px 1fr}.wc-product-line__aside{grid-column:1/-1;grid-template-columns:auto 1fr auto;align-items:center;justify-items:start}.wc-product-line__aside .wc-line-price{justify-self:center}.wc-product-line__aside .wc-remove{justify-self:end;margin-top:0}.wc-summary-card--checkout{order:-1}.wc-summary-card--checkout [data-summary-submit]{display:none}.wc-mobile-submit{display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;margin-top:8px}}
@media(max-width:620px){.wc-main{padding-top:72px}.wc-breadcrumbs{font-size:9px}.wc-flow-steps{margin:12px auto 22px}.wc-flow-steps b{display:none}.wc-flow-steps::before{left:12%;right:12%}.wc-page-head{padding:20px 0}.wc-page-head h1,.wc-status-hero h1,.wc-state-section h1{font-size:36px}.wc-status-hero{padding:16px 0 42px}.wc-status-hero__grid{padding:20px;border-radius:24px}.wc-status-hero__grid figure{min-height:220px}.wc-added-card{grid-template-columns:auto 1fr;padding:18px}.wc-added-card>strong,.wc-added-card>.btn{grid-column:2}.wc-product-line{grid-template-columns:1fr;gap:14px}.wc-product-line figure{aspect-ratio:1.4/1}.wc-product-line__aside{grid-template-columns:auto 1fr auto}.wc-cross-sell{align-items:flex-start;flex-direction:column}.wc-content-card,.wc-form-card,.wc-summary-card{border-radius:22px}.wc-content-card,.wc-form-card,.wc-summary-card{padding:18px}.wc-fields--2,.wc-choice-grid,.wc-payment-choice{grid-template-columns:1fr}.wc-field--wide{grid-column:auto}.wc-form-card__head{grid-template-columns:38px 1fr}.wc-form-card__head>span{width:38px;height:38px}.wc-form-card h2{font-size:22px}.wc-result-card,.wc-payment-card{padding:26px 18px;border-radius:24px}.wc-result-details,.wc-empty-grid{grid-template-columns:1fr}.wc-payment-card>.btn{min-width:0;width:100%}.wc-result-card .button-row{display:grid;grid-template-columns:1fr}.wc-result-card .button-row .btn,.wc-payment-recovery-actions>form{width:100%}.wc-support-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.wc-support-actions a{min-width:0;padding:10px 7px}.wc-mini-cart{padding:28px 18px}}
@media(max-width:620px){.wc-certificate-access{padding:18px;border-radius:18px}.wc-certificate-access h2{font-size:21px}.wc-certificate-access .button-row{display:grid;grid-template-columns:1fr}.wc-certificate-access .btn{width:100%}}

/* v1.1 — обязательный выбор типа сертификата в корзине */
.wc-cart-format{margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid rgba(40,78,55,.12)}
.wc-cart-format__head{display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:start;margin-bottom:16px}
.wc-cart-format__head>span{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--green);color:var(--cream);font-weight:900}
.wc-cart-format__head h2{margin:0 0 5px;font-size:26px;line-height:1.08;color:var(--green)}
.wc-cart-format__head p:not(.wc-eyebrow){max-width:760px;margin:0;color:#647767;font-size:12px;line-height:1.5}
.wc-cart-format__choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wc-cart-format__choices label{cursor:pointer}
.wc-cart-format__choices input{position:absolute;opacity:0;pointer-events:none}
.wc-cart-format__choices label>span{display:grid;gap:5px;min-height:112px;padding:17px 18px;border:1px solid rgba(40,78,55,.18);border-radius:18px;background:#f8e9c4;transition:.18s ease}
.wc-cart-format__choices label:hover>span{border-color:rgba(40,78,55,.4);transform:translateY(-2px)}
.wc-cart-format__choices input:checked+span{border-color:var(--green);background:#f7efda;box-shadow:0 0 0 4px rgba(40,78,55,.08)}
.wc-cart-format__choices b{font-size:18px;color:var(--green)}
.wc-cart-format__choices small{color:#647767;font-size:11px;line-height:1.4}
.wc-cart-format__choices em{margin-top:auto;color:var(--burgundy);font-style:normal;font-size:11px;font-weight:900}
.wc-cart-format__status{min-height:18px;margin:10px 0 0;color:#6e7d70;font-size:10px;font-weight:800}
.wc-cart-format__status.is-ready{color:var(--green)}
.wc-summary-card__gift dd{color:var(--green)}
.wc-summary-card>.btn[disabled]{opacity:.58;cursor:not-allowed;filter:saturate(.65)}
.wc-product-line figure{aspect-ratio:1014/477;background:#d7c38f}
.wc-product-line figure img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.wc-product-options [data-selected-format]{font-weight:900;color:var(--green)}

@media(max-width:620px){
  .wc-cart-page .wc-main{padding-top:68px}
  .wc-cart-page .wc-breadcrumbs{display:none}
  .wc-cart-page .wc-flow-steps{max-width:280px;margin:5px auto 9px}
  .wc-cart-page .wc-flow-steps::before{top:13px}
  .wc-cart-page .wc-flow-steps span{width:28px;height:28px;font-size:10px}
  .wc-cart-page .wc-page-head{padding:7px 0 9px}
  .wc-cart-page .wc-page-head .section-label{margin-bottom:3px;font-size:8px}
  .wc-cart-page .wc-page-head h1{margin-bottom:5px;font-size:29px}
  .wc-cart-page .wc-page-head p:last-child{max-width:330px;font-size:11px;line-height:1.35}
  .wc-cart-page .wc-checkout-section{padding:3px 0 48px}
  .wc-cart-page .wc-content-card{padding:12px;border-radius:20px}
  .wc-cart-format{margin-bottom:12px;padding-bottom:12px}
  .wc-cart-format__head{grid-template-columns:32px 1fr;gap:9px;margin-bottom:9px}
  .wc-cart-format__head>span{width:32px;height:32px;border-radius:10px;font-size:11px}
  .wc-cart-format__head .wc-eyebrow{margin-bottom:2px;font-size:7px}
  .wc-cart-format__head h2{margin-bottom:2px;font-size:18px}
  .wc-cart-format__head p:not(.wc-eyebrow){font-size:9px;line-height:1.3}
  .wc-cart-format__choices{grid-template-columns:1fr 1fr;gap:7px}
  .wc-cart-format__choices label>span{min-height:77px;padding:9px 10px;border-radius:13px}
  .wc-cart-format__choices b{font-size:14px}
  .wc-cart-format__choices small{font-size:8px;line-height:1.25}
  .wc-cart-format__choices em{font-size:8px}
  .wc-cart-format__status{margin-top:6px;font-size:8px}
  .wc-cart-page .wc-product-line{grid-template-columns:1fr;gap:8px;padding-bottom:11px}
  .wc-cart-page .wc-product-line figure{aspect-ratio:1014/477;border-radius:14px}
  .wc-cart-page .wc-product-line__content{display:grid;grid-template-columns:1fr auto;column-gap:10px;align-items:end}
  .wc-cart-page .wc-product-line__content .wc-eyebrow{grid-column:1/-1;margin-bottom:1px;font-size:7px}
  .wc-cart-page .wc-product-line h2{margin:0;font-size:17px;line-height:1.05}
  .wc-cart-page .wc-product-options{grid-column:1/-1;margin-top:5px;font-size:9px}
  .wc-cart-page .wc-product-line__aside{grid-template-columns:auto 1fr auto;gap:7px}
  .wc-cart-page .wc-qty{grid-template-columns:28px 36px 28px}
  .wc-cart-page .wc-line-price{justify-self:center;font-size:19px}
  .wc-cart-page .wc-remove{font-size:10px}
  .wc-cart-page .wc-summary-card{margin-top:4px}
}


/* v1.2 — корзина без промежуточной страницы, компактный промокод */
.wc-summary-card{min-width:0;overflow:hidden}
.wc-coupon>div{grid-template-columns:minmax(0,1fr) 118px;width:100%}
.wc-coupon input{width:100%;min-width:0;padding:11px 10px;font-size:12px;line-height:1.2}
.wc-coupon button{width:118px;min-width:0;padding:0 9px;font-size:12px;white-space:nowrap}
@media(max-width:1180px) and (min-width:921px){
  .wc-layout{grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr)}
  .wc-summary-card{padding:22px}
  .wc-coupon>div{grid-template-columns:minmax(0,1fr) 104px}
  .wc-coupon input{font-size:11px;padding:10px 8px}
  .wc-coupon button{width:104px;font-size:11px;padding:0 7px}
}
@media(max-width:420px){
  .wc-coupon>div{grid-template-columns:minmax(0,1fr) 105px}
  .wc-coupon input{font-size:11px;padding:10px 8px}
  .wc-coupon button{width:105px;font-size:11px;padding:0 7px}
}

/* v1.3 — cleaner cart, persisted format and empty-cart visual fixes */
.wc-cart-format__head{align-items:center}
.wc-cart-format__head h2{margin-bottom:0}
.wc-cart-format__status,.wc-product-options{display:none!important}
.wc-result-card--empty .wc-state-icon{background:var(--burgundy);color:var(--cream)}
.wc-empty-grid img{display:block;width:100%;aspect-ratio:1.48/1;object-fit:cover;object-position:center;border-radius:14px;background:transparent}
.wc-empty-grid a{overflow:hidden}
@media(max-width:620px){
  .wc-cart-format__head{margin-bottom:8px}
  .wc-empty-grid img{aspect-ratio:1.55/1}
}


/* v1.4 — checkout phone mask, pickup logic and Tochka Bank gateway */
.wc-fields label>small{display:block;margin-top:6px;color:#758276;font-size:9px;line-height:1.35}
.wc-delivery-fields{grid-column:1/-1}
.wc-delivery-fields[hidden]{display:none!important}
.wc-delivery-fields>.wc-fields{margin-top:0}
.wc-summary-card--checkout .wc-order-product{grid-template-columns:96px minmax(0,1fr) auto;gap:12px}
.wc-summary-card--checkout .wc-order-product img{display:block;width:96px;height:auto;aspect-ratio:1014/477;object-fit:cover;object-position:center;border-radius:12px;background:transparent}
.wc-tochka-gateway{position:relative;display:block;padding:22px;border:1px solid rgba(40,78,55,.2);border-radius:20px;background:#f8e9c4;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease}
.wc-tochka-gateway:hover{border-color:rgba(40,78,55,.42)}
.wc-tochka-gateway__input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}
.wc-tochka-gateway__top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px}
.wc-tochka-gateway__logo{display:grid;place-items:center;min-width:112px;height:64px;padding:0 18px;border-radius:18px;background:var(--green);color:var(--cream);font-size:29px;font-weight:900;letter-spacing:-.07em;text-transform:lowercase}
.wc-tochka-gateway__copy b,.wc-tochka-gateway__copy small{display:block}
.wc-tochka-gateway__copy b{color:var(--green);font-size:clamp(18px,2vw,23px);line-height:1.12}
.wc-tochka-gateway__copy small{margin-top:7px;color:#6d7c6f;font-size:12px;line-height:1.4}
.wc-tochka-gateway__selected{padding:10px 14px;border-radius:999px;background:rgba(40,78,55,.1);color:var(--green);font-size:11px;font-weight:900;white-space:nowrap}
.wc-tochka-gateway__input:not(:checked)+.wc-tochka-gateway__top .wc-tochka-gateway__selected{display:none}
.wc-tochka-gateway__input:focus-visible+.wc-tochka-gateway__top{outline:3px solid rgba(40,78,55,.24);outline-offset:6px;border-radius:12px}
.wc-tochka-gateway__description{display:block;margin:20px 0 0;padding-top:18px;border-top:1px solid rgba(40,78,55,.12);color:#617264;font-size:13px;line-height:1.55}
.wc-tochka-gateway__fallback{display:grid;gap:3px;margin-top:12px;padding:12px 14px;border-radius:14px;background:rgba(127,42,33,.07);color:var(--green);font-size:12px;line-height:1.45}.wc-tochka-gateway__fallback small{color:rgba(40,78,55,.8)}
.wc-manual-contact-gateway{position:relative;display:block;padding:22px;border:1px solid rgba(40,78,55,.24);border-radius:20px;background:var(--cream);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease}.wc-manual-contact-gateway:hover{border-color:rgba(40,78,55,.48)}
.wc-manual-contact-gateway__input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}.wc-manual-contact-gateway__top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}.wc-manual-contact-gateway__mark{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--green);color:var(--cream);font-size:23px;font-weight:900}.wc-manual-contact-gateway__copy b,.wc-manual-contact-gateway__copy small{display:block}.wc-manual-contact-gateway__copy b{color:var(--green);font-size:clamp(17px,2vw,22px);line-height:1.15}.wc-manual-contact-gateway__copy small{margin-top:5px;color:rgba(40,78,55,.8);font-size:11px}.wc-manual-contact-gateway__selected{padding:9px 13px;border-radius:999px;background:rgba(40,78,55,.1);color:var(--green);font-size:11px;font-weight:900;white-space:nowrap}.wc-manual-contact-gateway__input:not(:checked)+.wc-manual-contact-gateway__top .wc-manual-contact-gateway__selected{display:none}.wc-manual-contact-gateway__input:focus-visible+.wc-manual-contact-gateway__top{outline:3px solid rgba(40,78,55,.24);outline-offset:6px;border-radius:12px}.wc-manual-contact-gateway__description{display:block;margin:18px 0 0;padding-top:16px;border-top:1px solid rgba(40,78,55,.14);color:rgba(40,78,55,.82);font-size:13px;line-height:1.5}.wc-manual-contact-gateway__note{display:block;margin-top:9px;color:rgba(40,78,55,.72);font-size:11px;line-height:1.45}
.wc-tochka-handoff{display:grid;gap:4px;margin:0 0 24px;padding:16px;border-radius:18px;background:#f8e9c4;color:var(--green)}
.wc-tochka-handoff b{font-size:20px}.wc-tochka-handoff span{font-size:11px;color:#68786b}
/* Integration guard: constrain any logo injected by a WooCommerce payment gateway. */
.wc-checkout-page .wc_payment_method img,.wc-checkout-page .payment_box img{max-width:180px!important;max-height:58px!important;width:auto!important;height:auto!important;object-fit:contain!important}
@media(max-width:620px){
  .wc-summary-card--checkout .wc-order-product{grid-template-columns:88px minmax(0,1fr);align-items:start}
  .wc-summary-card--checkout .wc-order-product>strong{grid-column:2;justify-self:start}
  .wc-summary-card--checkout .wc-order-product img{width:88px}
  .wc-tochka-gateway{padding:16px}
  .wc-tochka-gateway__top{grid-template-columns:auto 1fr;gap:10px}
  .wc-tochka-gateway__logo{min-width:78px;height:48px;padding:0 12px;border-radius:15px;font-size:21px}
  .wc-tochka-gateway__copy b{font-size:17px}
  .wc-tochka-gateway__copy small{margin-top:4px;font-size:10px}
  .wc-tochka-gateway__selected{grid-column:2;justify-self:start}
  .wc-tochka-gateway__description{margin-top:15px;padding-top:14px;font-size:11px}
  .wc-tochka-gateway__fallback{padding:10px 12px;font-size:11px}
  .wc-manual-contact-gateway{padding:16px}.wc-manual-contact-gateway__top{grid-template-columns:auto 1fr;gap:10px}.wc-manual-contact-gateway__mark{width:40px;height:40px}.wc-manual-contact-gateway__copy b{font-size:17px}.wc-manual-contact-gateway__selected{grid-column:2;justify-self:start}.wc-manual-contact-gateway__description{margin-top:14px;padding-top:13px;font-size:12px}
}

/* WordPress/WooCommerce adaptation of the approved v1.4 prototype. */
.grandthai-woo-flow .site-main{min-height:0}
.grandthai-woo-flow .woocommerce-notices-wrapper,.grandthai-woo-flow .woocommerce-NoticeGroup{width:min(1180px,calc(100% - 40px));margin:96px auto -74px;position:relative;z-index:3}
.grandthai-woo-flow .woocommerce-message,.grandthai-woo-flow .woocommerce-info,.grandthai-woo-flow .woocommerce-error{margin:0 0 12px!important;padding:14px 18px!important;border:1px solid rgba(40,78,55,.18)!important;border-radius:18px!important;background:var(--cream)!important;color:var(--green)!important;list-style:none!important}
.grandthai-woo-flow .woocommerce-error{border-color:rgba(127,42,33,.35)!important}
.grandthai-woo-flow .woocommerce-error li+li{margin-top:6px}
.grandthai-woo-flow #grandthai-checkout>.woocommerce-NoticeGroup-checkout{grid-column:1/-1;width:100%;margin:0 0 -6px;position:static;z-index:auto}
.grandthai-woo-flow #grandthai-checkout>.wc-checkout-form{grid-column:1}
.grandthai-woo-flow #grandthai-checkout>#order_review{grid-column:2}
.grandthai-woo-flow .wc-product-line h2 a{color:inherit}
.grandthai-woo-flow .woocommerce-Price-currencySymbol{white-space:nowrap}
.grandthai-woo-flow .wc-cart-update{margin-top:18px;padding:10px 16px;border:1px solid rgba(40,78,55,.18);border-radius:999px;background:transparent;color:var(--green);font-weight:900;cursor:pointer}
.grandthai-woo-flow .wc-summary-card>.btn{display:flex;align-items:center;justify-content:center;min-height:54px}
.grandthai-woo-flow .wc-summary-card>.btn[disabled]{border:0}
.grandthai-woo-flow .wc-coupon input{min-height:44px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.grandthai-woo-flow .wc-coupon input:focus-visible{outline:3px solid #f3dcac!important;outline-offset:2px;box-shadow:0 0 0 6px #7f2a21!important}
.grandthai-woo-flow .wc-coupon button{min-height:44px;border-radius:0!important}
.grandthai-woo-flow .wc_payment_methods{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.grandthai-woo-flow .wc_payment_method{margin:0}
.grandthai-woo-flow .wc-manual-contact-submit{display:flex;align-items:center;justify-content:center;width:calc(100% - 20px);min-height:50px;margin:10px 10px 0;border:1px solid var(--green);border-radius:999px;background:var(--cream);color:var(--green);font-weight:900;cursor:pointer}
.grandthai-woo-flow .wc-manual-contact-submit:hover{background:var(--green);color:var(--cream)}
.grandthai-woo-flow .wc-manual-contact-submit:focus-visible{outline:3px solid #f3dcac;outline-offset:2px;box-shadow:0 0 0 5px var(--green)}
.grandthai-woo-flow .wc-manual-contact-submit[aria-busy="true"]{opacity:.65;cursor:wait}
.grandthai-woo-flow .wc-gateway-choice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px;border:1px solid rgba(40,78,55,.18);border-radius:18px;background:#f8e9c4;cursor:pointer}
.grandthai-woo-flow .wc-gateway-choice>input{width:18px;height:18px;accent-color:var(--green)}
.grandthai-woo-flow .wc-gateway-choice b,.grandthai-woo-flow .wc-gateway-choice small{display:block}
.grandthai-woo-flow .wc-gateway-choice small{margin-top:4px;color:#647767;font-size:10px}
.grandthai-woo-flow .wc-gateway-choice__logo img,.grandthai-woo-flow .payment_method img{display:block;max-width:150px!important;max-height:48px!important;width:auto!important;height:auto!important;object-fit:contain!important}
.grandthai-woo-flow .payment_box{margin-top:8px;padding:14px 16px;border-radius:14px;background:rgba(40,78,55,.06);color:var(--green);font-size:12px}
.grandthai-woo-flow .payment_box p{margin:0}
.grandthai-woo-flow .wc-order-product+.wc-order-product{padding-top:14px;border-top:1px solid rgba(40,78,55,.1)}
.grandthai-woo-flow .wc-order-product img{object-fit:contain!important;background:#d7c38f}
.grandthai-woo-flow .wc-order-pay-form{display:grid;gap:18px;margin:22px 0}
.grandthai-woo-flow .wc-order-pay-form .btn{width:100%}
.grandthai-woo-flow [hidden]{display:none!important}
@media(max-width:920px){.grandthai-woo-flow .wc-summary-card--checkout [data-summary-submit]{display:none}}
/* WCAG 2.2 AA: small secondary copy remains at least 4.5:1 on light commerce surfaces. */
.wc-breadcrumbs,
.wc-flow-steps li,
.wc-page-head p:last-child,
.wc-status-hero p,
.wc-state-section p,
.wc-added-card p,
.wc-product-options,
.wc-cross-sell p,
.wc-summary-card dt,
.wc-coupon small,
.wc-safe-note small,
.wc-form-card__head p,
.wc-fields label>small,
.wc-choice-grid small,
.wc-payment-choice small,
.wc-branch-choice small,
.wc-agreement,
.wc-legal-note,
.wc-order-product small,
.wc-summary-help,
.wc-payment-card>small,
.wc-result-details span,
.wc-empty-grid span,
.wc-mini-cart__item small,
.wc-cart-format__head p:not(.wc-eyebrow),
.wc-cart-format__choices small,
.wc-cart-format__status,
.wc-tochka-gateway__copy small,
.wc-tochka-gateway__description,
.wc-tochka-handoff span,
.grandthai-woo-flow .wc-gateway-choice small{color:#536257}
@media(max-width:820px){
  body.grandthai-woo-flow{padding-bottom:0}
  .grandthai-woo-flow .site-footer{padding-bottom:0}
  .grandthai-woo-flow .woocommerce-notices-wrapper,.grandthai-woo-flow .woocommerce-NoticeGroup{width:min(100% - 24px,1180px);margin:76px auto -62px}
  .grandthai-woo-flow #grandthai-checkout>.woocommerce-NoticeGroup-checkout{grid-column:1;width:100%;margin:0 0 -6px}
  .grandthai-woo-flow #grandthai-checkout>.wc-checkout-form,.grandthai-woo-flow #grandthai-checkout>#order_review{grid-column:1}
}
@media(max-width:620px){
  .grandthai-woo-flow .wc-gateway-choice{grid-template-columns:auto 1fr;padding:13px}
  .grandthai-woo-flow .wc-gateway-choice__logo{grid-column:2}
  .grandthai-woo-flow .wc-gateway-choice__logo img{max-width:110px!important;max-height:38px!important}
  .grandthai-woo-flow .wc-product-line__content .variation{grid-column:1/-1;margin:6px 0 0;font-size:10px}
}
