/* SunnoBazar Checkout — everything is driven by CSS variables (overridable from Elementor) */
.sb-checkout {
  --sb-primary: #0b3c8c;
  --sb-on-primary: #fff;
  --sb-text: #0f172a;
  --sb-text-muted: #6b7280;
  --sb-border: #dbe1ea;
  --sb-surface: #fff;
  --sb-muted: #f3f6fa;
  --sb-danger: #dc2626;
  --sb-radius: 8px;
  --sb-font: 'SolaimanLipi', 'Hind Siliguri', sans-serif;
  --sb-font-size: 16px;
  --sb-gap: 16px;
  --sb-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);

  font-family: var(--sb-font);
  font-size: var(--sb-font-size);
  color: var(--sb-text);
  line-height: 1.5;
  box-sizing: border-box;
}
.sb-checkout *, .sb-checkout *::before, .sb-checkout *::after { box-sizing: inherit; }
.sb-checkout img { max-width: 100%; height: auto; }

.sb-grid { display: grid; gap: calc(var(--sb-gap) * 1.5); grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .sb-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .sb-card--summary { position: sticky; top: 24px; }
}

.sb-card {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  overflow: hidden;
}

.sb-notice {
  background: var(--sb-primary);
  color: var(--sb-on-primary);
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.15em;
  line-height: 1.45;
}

.sb-fields { padding: 28px 24px 8px; display: grid; gap: 20px; }
.sb-field label, .sb-field .sb-label { display: block; font-weight: 700; font-size: 1.05em; margin-bottom: 8px; }
.sb-req { color: var(--sb-danger); }

.sb-input {
  display: flex; align-items: stretch;
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  background: var(--sb-surface);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.sb-input:focus-within { border-color: var(--sb-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sb-primary) 18%, transparent); }
.sb-icon {
  flex: 0 0 56px; display: grid; place-items: center;
  background: var(--sb-muted); border-right: 1px solid var(--sb-border); color: var(--sb-text);
}
.sb-icon svg { width: 20px; height: 20px; fill: currentColor; }
.sb-input input, .sb-input textarea {
  flex: 1 1 auto; min-width: 0; width: 100%;
  border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important;
  padding: 14px 16px; font: inherit; color: inherit; min-height: 52px; border-radius: 0;
}
.sb-input textarea { resize: vertical; }

.sb-area { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sb-radio {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--sb-border); border-radius: var(--sb-radius);
  padding: 12px 14px; font-weight: 600; margin: 0 !important; transition: border-color .15s, background .15s;
}
.sb-radio input { accent-color: var(--sb-primary); margin: 0; width: 18px; height: 18px; }
.sb-radio span { flex: 1; }
.sb-radio b { color: var(--sb-primary); }
.sb-radio.is-active { border-color: var(--sb-primary); background: color-mix(in srgb, var(--sb-primary) 6%, var(--sb-surface)); }

.sb-payment-wrap { padding: 20px 24px 28px; border-top: 1px solid var(--sb-border); margin-top: 20px; }
.sb-h3 { font-size: 1.25em; font-weight: 700; margin: 0 0 14px; }
.sb-gateways { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.sb-gateway__head { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; font-size: 1.1em; margin: 0 !important; }
.sb-gateway__head input { accent-color: var(--sb-primary); width: 20px; height: 20px; margin: 0; }
.sb-gateway__icon img { max-height: 28px; width: auto; display: inline-block; vertical-align: middle; margin-left: 4px; }
.sb-gateway__box { margin-top: 10px; padding: 14px 16px; background: var(--sb-muted); border: 1px solid var(--sb-border); border-radius: var(--sb-radius); font-size: .98em; }
.sb-gateway__box p:last-child { margin-bottom: 0; }

.sb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; cursor: pointer; border-radius: var(--sb-radius);
  transition: filter .15s, transform .05s; text-transform: none; line-height: 1;
}
.sb-btn:active { transform: translateY(1px); }
.sb-btn--submit {
  width: 100%; min-height: 60px; font-size: 1.2em; border: 0;
  background: var(--sb-primary); color: var(--sb-on-primary); position: relative;
}
.sb-btn--submit:hover { filter: brightness(1.08); }
.sb-btn--submit[disabled] { opacity: .6; cursor: not-allowed; }
.sb-btn__spinner { display: none; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: sb-spin .7s linear infinite; }
.sb-btn.is-loading .sb-btn__spinner { display: inline-block; }
@keyframes sb-spin { to { transform: rotate(360deg); } }

.sb-errors { display: block; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--sb-radius); background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; font-size: .95em; }
.sb-errors[hidden] { display: none; }
.sb-errors ul { margin: 0; padding-left: 18px; }
.sb-notice-msg { padding: 10px 14px; border-radius: var(--sb-radius); margin-bottom: 10px; font-size: .95em; }
.sb-notice-msg--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.sb-notice-msg--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Summary ---------- */
.sb-summary-title { padding: 18px 24px; margin: 0; border-bottom: 1px solid var(--sb-border); background: var(--sb-muted); }
#sb-review { padding: 16px; }
.sb-table { width: 100%; border-collapse: collapse; border: 1px solid var(--sb-border); font-size: .98em; margin: 0; }
.sb-table th, .sb-table td { padding: 12px 10px; border: 0; text-align: center; vertical-align: middle; }
.sb-table thead th { background: var(--sb-muted); font-weight: 700; border-bottom: 1px solid var(--sb-border); }
.sb-table tbody tr { border-bottom: 1px solid var(--sb-border); }
.sb-col-del { width: 56px; }
.sb-col-prod { text-align: left !important; }
.sb-col-price { white-space: nowrap; font-weight: 700; }
.sb-prod { display: flex; align-items: center; gap: 10px; }
.sb-prod__img { flex: 0 0 72px; }
.sb-prod__img img { width: 72px; height: 72px; object-fit: cover; border-radius: calc(var(--sb-radius) / 2); border: 1px solid var(--sb-border); display: block; }
.sb-prod__name { font-weight: 500; min-width: 0; }
.sb-prod__name .variation { font-size: .85em; color: var(--sb-text-muted); margin: 4px 0 0; }
.sb-remove { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--sb-danger); border-radius: 6px; }
.sb-remove:hover { background: #fef2f2; }
.sb-remove svg { width: 22px; height: 22px; fill: currentColor; display: block; }

.sb-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--sb-border); border-radius: calc(var(--sb-radius) / 1.5); overflow: hidden; background: var(--sb-muted); }
.sb-qty__btn { width: 36px; border: 0; background: transparent; font-size: 1.2em; cursor: pointer; font-weight: 700; color: var(--sb-text); }
.sb-qty__btn:hover { background: var(--sb-border); }
.sb-qty__input { width: 44px; text-align: center; border: 0 !important; border-left: 1px solid var(--sb-border) !important; border-right: 1px solid var(--sb-border) !important; background: var(--sb-surface) !important; font: inherit; font-weight: 700; padding: 8px 0; -moz-appearance: textfield; min-height: 40px; border-radius: 0; }
.sb-qty__input::-webkit-inner-spin-button, .sb-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.sb-table tfoot th { text-align: left; font-weight: 700; padding-left: 14px; }
.sb-table tfoot td { text-align: right; font-weight: 700; padding-right: 14px; white-space: nowrap; }
.sb-total-row--grand th, .sb-total-row--grand td { font-size: 1.08em; border-top: 1px solid var(--sb-border); }
.sb-coupon-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; font-size: .8em; font-weight: 600; background: var(--sb-muted); border: 1px dashed var(--sb-primary); color: var(--sb-primary); border-radius: 999px; }
.sb-coupon-remove { border: 0; background: none; cursor: pointer; color: inherit; font-size: 1.1em; line-height: 1; padding: 0 2px; }
.sb-empty { padding: 14px; margin: 0; text-align: center; color: var(--sb-text-muted); }

.sb-coupon { display: flex; gap: 12px; padding: 16px; background: var(--sb-primary); }
.sb-coupon input { flex: 1 1 auto; min-width: 0; border: 1px solid var(--sb-border); border-radius: var(--sb-radius); padding: 14px 16px; font: inherit; min-height: 52px; background: var(--sb-surface); color: var(--sb-text); }
.sb-btn--outline { background: transparent; color: var(--sb-on-primary); border: 2px solid var(--sb-on-primary); border-radius: 999px; padding: 0 26px; min-height: 52px; letter-spacing: .04em; }
.sb-btn--outline:hover { background: var(--sb-on-primary); color: var(--sb-primary); }

.sb-field[hidden] { display: none !important; }
.sb-checkout.is-busy { pointer-events: none; }
.sb-checkout.is-busy #sb-review { opacity: .55; }

/* ---------- Tablet / Mobile ---------- */
@media (max-width: 640px) {
  .sb-checkout { --sb-font-size: 15px; }
  .sb-notice { padding: 16px 18px; }
  .sb-fields, .sb-payment-wrap { padding-left: 16px; padding-right: 16px; }
  .sb-summary-title { padding: 16px; }
  #sb-review { padding: 10px; }
  .sb-table th, .sb-table td { padding: 10px 6px; }
  .sb-prod { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sb-prod__img, .sb-prod__img img { width: 64px; height: 64px; flex-basis: auto; }
  .sb-qty__btn { width: 30px; }
  .sb-qty__input { width: 38px; }
  .sb-area { grid-template-columns: 1fr; }
  .sb-coupon { padding: 12px; gap: 8px; }
  .sb-btn--outline { padding: 0 18px; }
}


/* ================= Thank you / order received ================= */
.sb-thankyou { display: grid; gap: 20px; }
.sb-ty-head { padding: 32px 28px; text-align: center; }
.sb-ty-head--failed .sb-ty-title { color: #b3261e; }
.sb-ty-check { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sb-primary); color: var(--sb-on-primary); margin-bottom: 14px; }
.sb-ty-check svg { width: 34px; height: 34px; fill: currentColor; }
.sb-ty-title { margin: 0 0 8px; font-size: 1.5em; line-height: 1.35; }
.sb-ty-sub { margin: 0; color: var(--sb-text-muted, #666); }
.sb-ty-meta { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; text-align: left; }
.sb-ty-meta li { border: 1px solid var(--sb-border); border-radius: calc(var(--sb-radius) / 1.4); padding: 10px 12px; background: var(--sb-muted); display: grid; gap: 3px; }
.sb-ty-meta span { font-size: .82em; opacity: .7; }
.sb-ty-meta strong { font-size: 1em; word-break: break-word; }
.sb-ty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 0; }
.sb-ty-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.sb-btn--ghost { background: transparent; color: var(--sb-primary); border: 2px solid var(--sb-primary); }
.sb-btn--ghost:hover { background: var(--sb-primary); color: var(--sb-on-primary); }
.sb-ty-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.sb-ty-card-title { padding: 16px 18px; margin: 0; border-bottom: 1px solid var(--sb-border); }
.sb-ty-table { width: 100%; border-collapse: collapse; }
.sb-ty-table td { padding: 12px 14px; vertical-align: middle; border-bottom: 1px solid var(--sb-border); }
.sb-ty-amount { text-align: right; white-space: nowrap; font-weight: 700; }
.sb-prod__qty { font-style: normal; opacity: .7; margin-left: 6px; }
.sb-ty-note { padding: 14px 18px; margin: 0; }
.sb-ty-info { padding: 6px 18px 14px; }
.sb-ty-info__row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--sb-border); }
.sb-ty-info__row:last-child { border-bottom: 0; }
.sb-ty-address { padding: 0 18px 18px; }
.sb-ty-address h4 { margin: 12px 0 4px; font-size: .95em; opacity: .75; }
.sb-ty-address p { margin: 0; line-height: 1.7; }
.sb-ty-login { padding: 20px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.sb-prod { display: flex; gap: 12px; align-items: flex-start; }
.sb-prod__img img { width: 72px; height: 72px; object-fit: cover; border-radius: calc(var(--sb-radius) / 1.6); display: block; }
.sb-prod__name { display: grid; gap: 4px; }
.sb-prod__link { text-decoration: none; font-weight: 700; color: inherit; }
.sb-prod__link:hover { color: var(--sb-primary); }
.sb-prod__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82em; opacity: .75; }
.sb-prod__more { font-size: .85em; font-weight: 600; color: var(--sb-primary); text-decoration: none; }
.sb-ty-dl-list { list-style: none; margin: 0; padding: 6px 18px 16px; display: grid; gap: 10px; }
.sb-ty-dl-list li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.sb-ty-btn--sm { min-height: 40px; padding: 0 16px; font-size: .9em; }
.sb-ty-dash__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--sb-border); }
.sb-ty-dash__head > div { display: grid; gap: 2px; }
.sb-ty-dash__head span { font-size: .85em; opacity: .7; }
.sb-ty-dash__count { text-align: right; }
.sb-ty-dash__count strong { font-size: 1.3em; }
.sb-ty-dash__links { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; }
.sb-ty-dash__links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--sb-border); border-radius: 999px; text-decoration: none; color: inherit; font-size: .9em; }
.sb-ty-dash__links a:hover { border-color: var(--sb-primary); color: var(--sb-primary); }
.sb-ty-orders th, .sb-ty-orders td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--sb-border); font-size: .92em; }
.sb-ty-orders thead th { opacity: .7; font-weight: 600; }
.sb-ty-status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--sb-muted); font-size: .85em; }
.sb-ty-status--completed { background: rgba(22,163,74,.12); color: #15803d; }
.sb-ty-status--processing { background: rgba(37,99,235,.12); color: #1d4ed8; }
.sb-ty-status--cancelled, .sb-ty-status--failed { background: rgba(179,38,30,.12); color: #b3261e; }
@media (max-width: 860px) { .sb-ty-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sb-ty-orders thead { display: none; } .sb-ty-orders tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px 0; } .sb-ty-orders td { border: 0; padding: 2px 14px; } }
@media (max-width: 640px) { .sb-ty-head { padding: 24px 16px; } .sb-ty-title { font-size: 1.25em; } }

/* ===== Buy Now button (shortcode [sbc_buy_now] + Elementor widget) ===== */
.sb-buynow-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--sb-primary,#16a34a);color:var(--sb-on-primary,#fff);padding:14px 28px;border-radius:var(--sb-radius,10px);font-family:var(--sb-font,inherit);font-weight:600;text-decoration:none;line-height:1.2;cursor:pointer;transition:filter .15s ease,transform .15s ease;box-sizing:border-box}
.sb-buynow-btn:hover{filter:brightness(1.06);transform:translateY(-1px);color:var(--sb-on-primary,#fff)}
.sb-buynow-btn:active{transform:translateY(0)}
.sbc-buynow-auto{margin-top:12px}.sbc-buynow-auto .sb-buynow-btn{width:100%;display:flex}

/* ===== Thank-you hero (screenshot style) ===== */
.sb-thankyou { --sb-green: #16a34a; --sb-green-dark: #15803d; --sb-navy: #0f1b2d; }
.sb-ty-hero { text-align: center; padding: 24px 16px 8px; max-width: 860px; margin: 0 auto 28px; }
.sb-ty-illustration { display: block; margin: 0 auto 8px; max-width: 320px; width: 70%; height: auto; }
.sb-ty-big { margin: 0 0 6px; font-size: clamp(2.2em, 6vw, 3.4em); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.sb-ty-big__navy { color: var(--sb-navy); }
.sb-ty-big__green { color: var(--sb-green); }
.sb-ty-lead { margin: 0 0 6px; font-size: clamp(1.15em, 3vw, 1.6em); font-weight: 700; color: var(--sb-navy); }
.sb-ty-sub { margin: 0 auto; max-width: 560px; color: #5b6b7c; font-size: 1em; line-height: 1.6; }

.sb-ty-order-card { display: flex; align-items: center; gap: 18px; max-width: 620px; margin: 28px auto 0; padding: 22px 26px; text-align: left;
	background: linear-gradient(135deg, #eafaf0 0%, #e2f7ea 100%); border: 1px solid #c8ecd4; border-radius: 16px; }
.sb-ty-order-card__icon { position: relative; flex: 0 0 auto; width: 56px; height: 56px; color: var(--sb-green); display: inline-flex; }
.sb-ty-order-card__icon > svg { width: 100%; height: 100%; }
.sb-ty-order-card__check { position: absolute; right: -8px; bottom: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--sb-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: 3px solid #eafaf0; }
.sb-ty-order-card__check svg { width: 14px; height: 14px; }
.sb-ty-order-card__body { display: grid; gap: 3px; }
.sb-ty-order-card__label { font-size: .85em; color: #5b6b7c; }
.sb-ty-order-card__number { font-size: 1.35em; font-weight: 800; color: var(--sb-navy); }
.sb-ty-order-card__date { font-size: .9em; color: #5b6b7c; }

.sb-ty-features { list-style: none; margin: 36px auto 0; padding: 0 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; }
.sb-ty-features li {
	display: grid;
	gap: 10px;
	justify-items: center;
	align-content: start;
	padding: 20px 14px;
	background: #fff;
	border: 1px solid #e3e8ee;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sb-ty-features li:hover { transform: translateY(-3px); border-color: rgba(22, 163, 74, .45); box-shadow: 0 10px 22px rgba(15, 23, 42, .09); }
.sb-ty-features__icon { width: 46px; height: 46px; padding: 9px; border-radius: 50%; background: rgba(22, 163, 74, .1); align-items: center; justify-content: center; color: var(--sb-green); display: inline-flex; }
.sb-ty-features__icon svg { width: 100%; height: 100%; }
.sb-ty-features strong { font-size: .92em; font-weight: 600; line-height: 1.4; color: var(--sb-navy); }

.sb-ty-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 36px 0 10px; }
.sb-ty-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; min-width: 260px; padding: 0 30px; border-radius: 999px; font-weight: 700; font-size: 1em; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.sb-ty-btn svg { width: 20px; height: 20px; }
.sb-ty-btn--primary { background: var(--sb-green); color: #fff; box-shadow: 0 8px 20px rgba(22, 163, 74, .28); }
.sb-ty-btn--primary:hover { background: var(--sb-green-dark); color: #fff; transform: translateY(-1px); }
.sb-ty-btn--outline { border: 2px solid var(--sb-green); color: var(--sb-green); background: transparent; }
.sb-ty-btn--outline:hover { background: rgba(22, 163, 74, .08); color: var(--sb-green-dark); transform: translateY(-1px); }

@media (max-width: 640px) {
	.sb-ty-features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.sb-ty-order-card { flex-direction: column; text-align: center; gap: 12px; }
	.sb-ty-btn { min-width: 0; width: 100%; max-width: 340px; }
}

/* ===== Thank-you responsive refinements (tablet + small mobile) ===== */
@media (min-width: 641px) and (max-width: 1024px) {
	.sb-ty-features { grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 620px; }
	.sb-ty-hero { padding: 20px 14px 4px; }
	.sb-ty-order-card { margin-left: 16px; margin-right: 16px; }
	.sb-ty-btn { min-width: 220px; flex: 1 1 220px; max-width: 340px; }
}
@media (max-width: 640px) {
	.sb-ty-hero { padding: 16px 12px 4px; margin-bottom: 20px; }
	.sb-ty-illustration { width: 82%; max-width: 240px; }
	.sb-ty-features { margin-top: 28px; }
	.sb-ty-features strong { font-size: .85em; }
	.sb-ty-features__icon { width: 38px; height: 38px; }
	.sb-ty-order-card { margin: 22px 12px 0; padding: 18px 16px; }
	.sb-ty-order-card__number { font-size: 1.2em; }
	.sb-ty-cta { gap: 12px; margin: 28px 12px 8px; }
	.sb-ty-btn { max-width: 100%; }
	.sb-thankyou .sb-card { border-radius: 12px; }
	.sb-ty-info__row { flex-direction: column; gap: 4px; }
	.sb-ty-table td { padding: 10px 12px; font-size: .92em; }
	.sb-ty-dl-list li { flex-direction: column; align-items: stretch; }
	.sb-ty-dl-list .sb-ty-btn { width: 100%; }
}
@media (max-width: 380px) {
	.sb-ty-features { grid-template-columns: 1fr 1fr; gap: 10px; }
	.sb-ty-features li { padding: 16px 10px; }
	.sb-ty-big { font-size: 2em; }
}

/* Keep the order-received screen full width inside theme and Elementor wrappers. */
body.woocommerce-order-received { overflow-x: hidden; }
body.woocommerce-order-received :where(.site-main, .content-area, .site-content, article, .entry-content, .woocommerce, .elementor-widget-container):has(.sb-thankyou) {
	width: 100%;
	max-width: none;
	min-width: 0;
}
body.woocommerce-order-received :where(.entry-content, .woocommerce, .elementor-widget-container):has(> .sb-thankyou) {
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}
body.woocommerce-order-received .sb-thankyou {
	width: 100%;
	max-width: 1180px;
	min-width: 0;
	margin-left: auto;
	margin-right: auto;
	padding: 0 20px 32px;
}
body.woocommerce-order-received .sb-thankyou > * { min-width: 0; }

@media (max-width: 640px) {
	body.woocommerce-order-received :where(.site-main, .content-area, .site-content, article, .entry-content, .woocommerce, .elementor-widget-container):has(.sb-thankyou) {
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	body.woocommerce-order-received .sb-thankyou {
		gap: 14px;
		padding: 0 10px 24px;
	}
	body.woocommerce-order-received .sb-ty-hero { padding-left: 4px; padding-right: 4px; }
	body.woocommerce-order-received .sb-ty-sub br { display: none; }
	body.woocommerce-order-received .sb-ty-order-card,
	body.woocommerce-order-received .sb-ty-cta { margin-left: 0; margin-right: 0; }
	body.woocommerce-order-received .sb-ty-grid { gap: 14px; }
	body.woocommerce-order-received .sb-card { width: 100%; min-width: 0; }
	body.woocommerce-order-received .sb-ty-table { table-layout: fixed; }
	body.woocommerce-order-received .sb-ty-table td:first-child { width: auto; overflow-wrap: anywhere; }
	body.woocommerce-order-received .sb-ty-table .sb-ty-amount { width: 92px; }
	body.woocommerce-order-received .sb-prod { flex-direction: row; min-width: 0; }
	body.woocommerce-order-received .sb-prod__img { flex: 0 0 64px; }
	body.woocommerce-order-received .sb-prod__name { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
	body.woocommerce-order-received .sb-thankyou { padding-left: 8px; padding-right: 8px; }
	body.woocommerce-order-received .sb-ty-table .sb-ty-amount { width: 78px; }
	body.woocommerce-order-received .sb-prod { gap: 8px; }
	body.woocommerce-order-received .sb-prod__img { flex-basis: 54px; }
	body.woocommerce-order-received .sb-prod__img img { width: 54px; height: 54px; }
}

/* Mobile order-received page: remove all theme gutters, including around the header. */
@media (max-width: 640px) {
	body.woocommerce-order-received {
		margin: 0 !important;
		padding: 0 !important;
	}
	body.woocommerce-order-received :where(#page, .site, .site-wrapper, .site-container, .site-content, .content-area, .site-main, main, article, .entry-content, .woocommerce-page, .woocommerce, .elementor, .elementor-section-wrap, .elementor-container, .e-con, .e-con-inner):has(.sb-thankyou) {
		width: 100% !important;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	body.woocommerce-order-received :where(.site-header, #masthead, header.site-header, .elementor-location-header) {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	body.woocommerce-order-received :where(.site-header, #masthead, header.site-header, .elementor-location-header) > :where(.container, .container-fluid, .elementor, .elementor-section, .elementor-container, .e-con, .e-con-inner) {
		width: 100% !important;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	body.woocommerce-order-received .sb-thankyou {
		margin: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}


/* ===== Thank-you: WhatsApp help ===== */
.sb-ty-wa {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin: 20px auto 0;
	max-width: 980px;
	border: 1px solid #cdeed7;
	background: linear-gradient(180deg, #f3fdf6 0%, #ffffff 100%);
}
.sb-ty-wa__icon {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
}
.sb-ty-wa__icon svg { width: 28px; height: 28px; }
.sb-ty-wa__title { margin: 0 0 4px; font-size: 18px; }
.sb-ty-wa__text { margin: 0 0 12px; color: #475569; font-size: 14px; line-height: 1.6; }
.sb-ty-wa__btn {
	background: #25d366;
	border: 1px solid #25d366;
	color: #fff !important;
	font-weight: 600;
}
.sb-ty-wa__btn:hover { background: #1eb955; border-color: #1eb955; }
.sb-ty-wa__num { display: inline-block; margin-inline-start: 10px; font-weight: 600; direction: ltr; }

.sb-wa-float {
	position: fixed;
	inset-inline-end: 16px;
	bottom: 16px;
	z-index: 1000;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(37, 211, 102, .4);
}
.sb-wa-float svg { width: 30px; height: 30px; }
.sb-wa-float:hover { background: #1eb955; }

@media (max-width: 640px) {
	.sb-ty-wa { flex-direction: column; text-align: center; align-items: center; }
	.sb-ty-wa__num { display: block; margin: 8px 0 0; }
}
