:root {
  --restpy-orange: #ff7a1a;
  --restpy-orange-dark: #e95f00;
  --restpy-ink: #12161c;
  --restpy-muted: #667085;
  --restpy-line: #e3e8ef;
  --restpy-bg: #f4f7fb;
}

body {
  background: var(--restpy-bg);
  color: var(--restpy-ink);
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
}

.site,
.wp-site-blocks,
#page {
  background: var(--restpy-bg);
}

.woocommerce,
.woocommerce-page main,
.woocommerce-page .site-main,
.woocommerce-page .content-area {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}

.woocommerce-products-header,
.woocommerce div.product,
.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout-review-order,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: #fff;
  border: 1px solid var(--restpy-line);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(18, 22, 28, 0.06);
}

.woocommerce-products-header {
  margin: 24px 0 18px;
  padding: 28px;
}

.woocommerce-products-header__title,
.woocommerce div.product .product_title,
.woocommerce-cart h1,
.woocommerce-checkout h1 {
  color: var(--restpy-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.woocommerce-result-count,
.woocommerce .woocommerce-breadcrumb,
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce .product_meta,
.woocommerce form .form-row label {
  color: var(--restpy-muted);
}

.woocommerce .woocommerce-ordering select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-cart table.cart td.actions .coupon .input-text {
  min-height: 44px;
  border: 1px solid var(--restpy-line);
  border-radius: 10px;
  background: #fff;
  color: var(--restpy-ink);
  padding: 10px 12px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--restpy-line);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(18, 22, 28, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, 0.35);
  box-shadow: 0 22px 52px rgba(18, 22, 28, 0.1);
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 0.82;
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f6f8fb);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 48px;
  color: var(--restpy-ink);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--restpy-ink);
  font-size: 20px;
  font-weight: 900;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce div.product form.cart .button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--restpy-orange);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.22);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce div.product form.cart .button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--restpy-orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 122, 26, 0.3);
}

.woocommerce span.onsale {
  min-height: 0;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--restpy-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.woocommerce div.product {
  margin-top: 24px;
  padding: 28px;
}

.woocommerce div.product div.images img {
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.woocommerce div.product form.cart {
  display: flex;
  gap: 12px;
  align-items: center;
}

.woocommerce .quantity .qty {
  width: 76px;
  min-height: 44px;
  border: 1px solid var(--restpy-line);
  border-radius: 10px;
}

.woocommerce table.shop_table {
  border: 1px solid var(--restpy-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.woocommerce table.shop_table th {
  color: var(--restpy-muted);
  font-size: 13px;
  text-transform: uppercase;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--restpy-orange);
  border-radius: 12px;
  background: #fff;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--restpy-orange);
}

@media (max-width: 1100px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .woocommerce,
  .woocommerce-page main,
  .woocommerce-page .site-main,
  .woocommerce-page .content-area {
    padding-inline: 12px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .woocommerce ul.products li.product {
    padding: 12px;
  }

  .woocommerce div.product {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

body.restpy-checkout-body {
  background:
    linear-gradient(180deg, #ffffff 0, #f4f7fb 230px),
    #f4f7fb;
}

.restpy-checkout-page {
  margin-top: 18px;
}

.restpy-checkout-page .checkout-hero {
  min-height: 118px;
  align-items: center;
  margin-bottom: 16px;
  padding: clamp(16px, 2vw, 22px);
}

.restpy-checkout-page .checkout-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.08;
}

.restpy-checkout-page .checkout-hero p {
  max-width: 660px;
  font-size: 14px;
  line-height: 1.45;
}

.restpy-checkout-page .checkout-hero .catalog-breadcrumbs {
  margin-bottom: 12px;
  font-size: 12px;
}

.restpy-checkout-page .checkout-hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.14);
  color: #ff9a3d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.restpy-checkout-page .checkout-hero .commerce-hero-card {
  padding: 16px;
}

.restpy-checkout-page .checkout-hero .commerce-hero-card strong {
  margin: 5px 0;
  font-size: 20px;
}

.restpy-checkout-page .commerce-hero-card .amount {
  color: var(--restpy-ink);
  font-weight: 900;
}

.commerce-layout-checkout {
  grid-template-columns: minmax(0, 1fr);
}

.commerce-layout-checkout > .commerce-checkout-help {
  display: none;
}

.commerce-checkout-help,
.restpy-checkout-steps-card {
  gap: 14px;
  padding: 18px;
}

.commerce-checkout-help strong,
.restpy-checkout-steps-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--restpy-ink);
  font-size: 18px;
  line-height: 1.2;
}

.commerce-checkout-help ol,
.restpy-checkout-steps-card ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.commerce-checkout-help li,
.restpy-checkout-steps-card li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.commerce-checkout-help li span,
.restpy-checkout-steps-card li span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff4e8;
  color: var(--restpy-orange);
  font-weight: 900;
}

.commerce-checkout-help li p,
.restpy-checkout-steps-card li p {
  margin: 2px 0 0;
  color: var(--restpy-muted);
  font-size: 14px;
  line-height: 1.4;
}

.restpy-checkout-steps-card {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  border: 1px solid var(--restpy-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(18, 22, 28, 0.07);
}

.commerce-checkout-panel {
  overflow: visible;
}

.commerce-checkout-panel .woocommerce {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: none;
  padding: 0;
  margin: 0;
}

.commerce-checkout-panel .woocommerce-notices-wrapper {
  order: 0;
}

.commerce-checkout-panel .woocommerce-form-coupon-toggle {
  order: 2;
  max-width: none;
  margin: 0;
}

.commerce-checkout-panel .woocommerce-form-coupon-toggle .woocommerce-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed #d7e0ea;
  border-radius: 12px;
  background: #f8fafc;
  color: #6f7b89;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: none;
}

.commerce-checkout-panel .woocommerce-form-coupon-toggle .woocommerce-info::before {
  display: none;
}

.commerce-checkout-panel .woocommerce-form-coupon-toggle .showcoupon {
  color: #5e6a78;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.commerce-checkout-panel .woocommerce-form-coupon-toggle .showcoupon:hover {
  color: var(--restpy-orange-dark);
}

.commerce-checkout-panel .checkout_coupon {
  order: 3;
  max-width: none;
  margin: 0;
  padding: 14px;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: none;
}

.commerce-checkout-panel form.checkout.woocommerce-checkout {
  order: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.48fr);
  gap: 22px;
  align-items: start;
  margin: 0;
}

.commerce-checkout-panel #customer_details {
  grid-column: 1;
  grid-row: 1 / span 4;
  padding: clamp(20px, 2.5vw, 28px);
}

.commerce-checkout-panel #order_review_heading {
  grid-column: 2;
  grid-row: 2;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 20px 22px 0;
  border: 1px solid var(--restpy-line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
  color: var(--restpy-ink);
  font-size: 22px;
  font-weight: 800;
}

.commerce-checkout-panel #order_review {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  max-width: 100%;
  position: relative;
  top: auto;
  overflow: hidden;
  padding: 16px 20px 20px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.commerce-checkout-panel .woocommerce-billing-fields h3,
.commerce-checkout-panel .woocommerce-additional-fields h3 {
  margin: 0 0 18px;
  color: var(--restpy-ink);
  font-size: 26px;
  font-weight: 900;
}

.commerce-checkout-panel .col2-set,
.commerce-checkout-panel .col2-set .col-1,
.commerce-checkout-panel .col2-set .col-2 {
  float: none;
  width: 100%;
}

.commerce-checkout-panel .col2-set .col-2 {
  margin-top: 18px;
}

.commerce-checkout-panel .woocommerce form .form-row {
  margin: 0 0 14px;
  padding: 0;
}

.commerce-checkout-panel .woocommerce form .form-row-first,
.commerce-checkout-panel .woocommerce form .form-row-last {
  width: calc(50% - 7px);
}

.commerce-checkout-panel .woocommerce form .form-row-first {
  margin-right: 14px;
}

.restpy-checkout-body .commerce-checkout-panel #billing_first_name_field,
.restpy-checkout-body .commerce-checkout-panel #billing_phone_field {
  width: calc(50% - 7px) !important;
  clear: none !important;
}

.restpy-checkout-body .commerce-checkout-panel #billing_first_name_field {
  float: left;
  margin-right: 14px;
}

.restpy-checkout-body .commerce-checkout-panel #billing_phone_field {
  float: right;
  margin-right: 0;
}

.restpy-checkout-body .commerce-checkout-panel .restpy-legal-fields,
.restpy-checkout-body .commerce-checkout-panel #billing_company_field,
.restpy-checkout-body .commerce-checkout-panel #billing_country_field,
.restpy-checkout-body .commerce-checkout-panel #billing_address_1_field {
  clear: both;
}

.commerce-checkout-panel .woocommerce form .form-row label {
  margin-bottom: 7px;
  color: #344052;
  font-size: 13px;
  font-weight: 900;
}

.commerce-checkout-panel .woocommerce form .form-row .required {
  color: var(--restpy-orange);
  text-decoration: none;
}

.commerce-checkout-panel .woocommerce form .form-row input.input-text,
.commerce-checkout-panel .woocommerce form .form-row textarea,
.commerce-checkout-panel .woocommerce form .form-row select,
.commerce-checkout-panel .select2-container .select2-selection--single {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #fff;
  color: var(--restpy-ink);
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.commerce-checkout-panel .woocommerce form .form-row textarea {
  min-height: 104px;
  padding-top: 14px;
}

.commerce-checkout-panel .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.commerce-checkout-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  color: var(--restpy-ink);
}

.commerce-checkout-panel .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 12px;
  right: 10px;
}

.commerce-checkout-panel .woocommerce form .form-row input.input-text:focus,
.commerce-checkout-panel .woocommerce form .form-row textarea:focus,
.commerce-checkout-panel .woocommerce form .form-row select:focus,
.commerce-checkout-panel .select2-container--open .select2-selection--single {
  border-color: var(--restpy-orange);
  background: #fffdfa;
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
  outline: 0;
}

.restpy-checkout-body .restpy-buyer-type,
.restpy-checkout-body .restpy-legal-fields {
  margin: 0 0 20px !important;
  padding: 20px !important;
  border: 1px solid #dce5ee !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  box-shadow: none;
}

.restpy-checkout-body .restpy-buyer-type h3,
.restpy-checkout-body .restpy-legal-head h3 {
  margin: 0 0 14px !important;
  color: var(--restpy-ink) !important;
  font-size: 20px;
  font-weight: 900;
}

.restpy-checkout-body .restpy-buyer-type-options {
  gap: 12px !important;
}

.restpy-checkout-body .restpy-buyer-option {
  min-height: 98px;
  align-items: center !important;
  padding: 16px !important;
  border-color: #d9e2ec !important;
  border-radius: 12px !important;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.restpy-checkout-body .restpy-buyer-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 26, 0.42) !important;
  box-shadow: 0 12px 26px rgba(18, 22, 28, 0.08);
}

.restpy-checkout-body .restpy-buyer-option input {
  accent-color: var(--restpy-orange);
}

.restpy-checkout-body .restpy-buyer-option.is-selected {
  border-color: var(--restpy-orange) !important;
  background: #fff7ed !important;
  box-shadow: 0 14px 30px rgba(255, 122, 26, 0.12);
}

.restpy-checkout-body .restpy-buyer-option strong {
  color: var(--restpy-ink);
  font-size: 15px;
  font-weight: 900;
}

.restpy-checkout-body .restpy-buyer-option small {
  margin-top: 4px;
  color: var(--restpy-muted);
}

.restpy-checkout-body .restpy-legal-head p {
  margin: -6px 0 16px;
}

.commerce-checkout-panel table.shop_table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0 0 16px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.commerce-checkout-panel table.shop_table th,
.commerce-checkout-panel table.shop_table td {
  padding: 13px 0;
  border-color: #edf1f5;
}

.commerce-checkout-panel table.shop_table th {
  color: var(--restpy-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.commerce-checkout-panel table.shop_table th.product-name,
.commerce-checkout-panel table.shop_table td.product-name {
  width: auto;
  padding-right: 12px;
}

.commerce-checkout-panel table.shop_table th.product-total,
.commerce-checkout-panel table.shop_table td.product-total {
  width: 122px;
  text-align: right;
}

.commerce-checkout-panel table.shop_table td.product-name {
  color: var(--restpy-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.commerce-checkout-panel table.shop_table td.product-total {
  color: var(--restpy-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.commerce-checkout-panel table.shop_table .amount {
  color: var(--restpy-ink);
  font-weight: 750;
  white-space: nowrap;
}

.commerce-checkout-panel table.shop_table tfoot th,
.commerce-checkout-panel table.shop_table tfoot td {
  color: var(--restpy-muted);
  font-size: 13px;
  font-weight: 750;
}

.commerce-checkout-panel table.shop_table tfoot .amount {
  color: var(--restpy-ink);
  font-size: 15px;
}

.commerce-checkout-panel table.shop_table tfoot tr.order-total th,
.commerce-checkout-panel table.shop_table tfoot tr.order-total td {
  padding-top: 16px;
  border-top: 1px solid #dfe6ee;
  color: var(--restpy-ink);
  font-size: 16px;
  font-weight: 800;
}

.commerce-checkout-panel table.shop_table tfoot tr.order-total .amount {
  color: var(--restpy-orange-dark);
  font-size: 22px;
  font-weight: 850;
}

.commerce-checkout-panel #payment {
  border-radius: 14px;
  background: #f6f8fb;
}

.commerce-checkout-panel #payment ul.payment_methods {
  display: grid;
  gap: 10px;
  padding: 0;
  border-bottom: 0;
}

.commerce-checkout-panel #payment ul.payment_methods li.wc_payment_method {
  margin: 0;
  padding: 14px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fff;
}

.commerce-checkout-panel #payment ul.payment_methods li input {
  margin: 2px 9px 0 0;
  accent-color: var(--restpy-orange);
}

.commerce-checkout-panel #payment ul.payment_methods li label {
  color: var(--restpy-ink);
  font-weight: 900;
}

.commerce-checkout-panel #payment div.payment_box {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  color: #536273;
  font-size: 14px;
  line-height: 1.45;
}

.commerce-checkout-panel #payment div.payment_box::before {
  display: none;
}

.commerce-checkout-panel .woocommerce-privacy-policy-text {
  color: var(--restpy-muted);
  font-size: 13px;
  line-height: 1.45;
}

.commerce-checkout-panel #place_order {
  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  border-radius: 12px;
  background: var(--restpy-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(255, 122, 26, 0.28);
}

.commerce-checkout-panel #place_order:hover {
  background: var(--restpy-orange-dark);
  transform: translateY(-1px);
}

.restpy-order-received-body {
  background:
    linear-gradient(180deg, #ffffff 0, #f4f7fb 240px),
    #f4f7fb;
}

.restpy-order-page {
  margin-top: 18px;
}

.restpy-order-page .order-hero {
  min-height: 210px;
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.restpy-order-page .order-hero h1 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1;
}

.restpy-order-page .order-hero p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.5;
}

.restpy-order-page .order-hero .catalog-breadcrumbs {
  margin-bottom: 18px;
}

.order-hero-card {
  align-self: center;
  min-width: 280px;
}

.order-hero-card .amount {
  color: var(--restpy-orange-dark);
  font-weight: 900;
}

.order-received-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.order-status-card,
.order-summary-card,
.order-products-card,
.order-next-card,
.order-empty-card {
  border: 1px solid var(--restpy-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 22, 28, 0.06);
}

.order-status-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(20px, 2.4vw, 28px);
}

.order-success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: #ecfdf3;
  color: #12a15f;
}

.order-success-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-status-card .eyebrow,
.order-card-heading .eyebrow,
.order-next-card .eyebrow {
  margin: 0 0 8px;
  color: var(--restpy-orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-status-card h2,
.order-products-card h2,
.order-next-card h2,
.order-empty-card h2 {
  margin: 0;
  color: var(--restpy-ink);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1;
}

.order-status-card p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--restpy-muted);
  font-size: 15px;
  line-height: 1.55;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.order-primary,
.order-secondary,
.order-link-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.order-primary {
  border: 1px solid var(--restpy-orange);
  background: var(--restpy-orange);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 122, 26, 0.24);
}

.order-secondary,
.order-link-button {
  border: 1px solid #dbe3ec;
  background: #fff;
  color: var(--restpy-ink);
}

.order-primary:hover,
.order-secondary:hover,
.order-link-button:hover {
  transform: translateY(-1px);
}

.order-primary:hover {
  background: var(--restpy-orange-dark);
  border-color: var(--restpy-orange-dark);
}

.order-secondary:hover,
.order-link-button:hover {
  border-color: var(--restpy-orange);
  color: var(--restpy-orange-dark);
}

.order-summary-card {
  position: sticky;
  top: 132px;
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 22px;
}

.order-summary-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.15;
}

.order-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.order-detail-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
}

.order-detail-list dt {
  color: var(--restpy-muted);
  font-size: 13px;
  font-weight: 800;
}

.order-detail-list dd {
  min-width: 0;
  margin: 0;
  color: var(--restpy-ink);
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.order-total-box {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 122, 26, 0.26);
  border-radius: 12px;
  background: #fff8f1;
}

.order-total-box span {
  color: var(--restpy-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-total-box strong {
  color: var(--restpy-orange-dark);
  font-size: 26px;
  line-height: 1.1;
}

.order-products-card {
  grid-column: 1;
  padding: clamp(18px, 2.3vw, 26px);
}

.order-card-heading {
  margin-bottom: 16px;
}

.order-products-list {
  display: grid;
  gap: 10px;
}

.order-product-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(120px, auto);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #fbfcfd;
}

.order-product-image {
  display: grid;
  width: 72px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
}

.order-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-product-info {
  min-width: 0;
}

.order-product-title {
  display: -webkit-box;
  color: var(--restpy-ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.28;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-product-title:hover {
  color: var(--restpy-orange-dark);
}

.order-product-meta {
  display: block;
  margin-top: 6px;
  color: var(--restpy-muted);
  font-size: 13px;
}

.order-product-total {
  color: var(--restpy-ink);
  font-size: 16px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.order-next-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(18px, 2.3vw, 26px);
}

.order-next-card ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-next-card li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #fbfcfd;
}

.order-next-card li span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: #fff1e6;
  color: var(--restpy-orange-dark);
  font-weight: 900;
}

.order-next-card li p {
  margin: 0;
  color: var(--restpy-muted);
  font-size: 14px;
  line-height: 1.45;
}

.order-empty-card {
  padding: 28px;
}

.order-empty-card p {
  color: var(--restpy-muted);
}

@media (max-width: 1180px) {
  .order-received-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-summary-card {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }

  .order-next-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .commerce-layout-checkout {
    grid-template-columns: minmax(0, 1fr);
  }

  .commerce-checkout-help {
    position: static;
    order: -1;
  }

  .commerce-checkout-help ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .commerce-checkout-panel form.checkout.woocommerce-checkout {
    grid-template-columns: 1fr;
  }

  .commerce-checkout-panel #customer_details,
  .commerce-checkout-panel .restpy-checkout-steps-card,
  .commerce-checkout-panel #order_review_heading,
  .commerce-checkout-panel #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  .commerce-checkout-panel #order_review {
    position: static;
  }
}

@media (max-width: 760px) {
  .restpy-checkout-body {
    overflow-x: hidden;
  }

  .restpy-order-received-body {
    overflow-x: hidden;
  }

  .restpy-checkout-body .city-dropdown {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
  }

  .restpy-order-received-body .city-dropdown {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
  }

  .restpy-checkout-body .category-strip {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .restpy-order-received-body .category-strip {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .restpy-checkout-body .category-strip-submenu {
    display: none !important;
  }

  .restpy-order-received-body .category-strip-submenu {
    display: none !important;
  }

  .restpy-checkout-page {
    width: min(100% - 20px, var(--container));
    margin-top: 12px;
  }

  .restpy-order-page {
    width: min(100% - 20px, var(--container));
    margin-top: 12px;
  }

  .restpy-checkout-page .checkout-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
    padding: 22px;
  }

  .restpy-order-page .order-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
    padding: 22px;
  }

  .restpy-checkout-page .checkout-hero h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .restpy-order-page .order-hero h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .order-hero-card {
    min-width: 0;
  }

  .order-status-card {
    grid-template-columns: 1fr;
  }

  .order-next-card ol {
    grid-template-columns: 1fr;
  }

  .commerce-checkout-panel {
    padding: 16px;
  }

  .commerce-checkout-panel #customer_details,
  .commerce-checkout-panel .restpy-checkout-steps-card,
  .commerce-checkout-panel #order_review_heading,
  .commerce-checkout-panel #order_review {
    padding-inline: 16px;
  }

  .commerce-checkout-panel .woocommerce form .form-row-first,
  .commerce-checkout-panel .woocommerce form .form-row-last {
    width: 100%;
    margin-right: 0;
  }

  .commerce-checkout-help ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .restpy-checkout-page .checkout-hero .catalog-breadcrumbs {
    margin-bottom: 14px;
  }

  .restpy-order-page .order-hero .catalog-breadcrumbs {
    margin-bottom: 14px;
  }

  .order-status-card,
  .order-summary-card,
  .order-products-card,
  .order-next-card,
  .order-empty-card {
    padding: 16px;
  }

  .order-actions > * {
    width: 100%;
  }

  .order-product-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .order-product-image {
    width: 58px;
    height: 54px;
  }

  .order-product-total {
    grid-column: 2;
    text-align: left;
  }

  .order-detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .commerce-checkout-panel {
    padding: 12px;
  }

  .commerce-checkout-panel #customer_details {
    padding: 16px;
  }

  .commerce-checkout-panel .woocommerce-billing-fields h3,
  .commerce-checkout-panel .woocommerce-additional-fields h3 {
    font-size: 22px;
  }

  .restpy-checkout-body .restpy-buyer-type,
  .restpy-checkout-body .restpy-legal-fields {
    padding: 16px !important;
  }

  .restpy-checkout-body .commerce-checkout-panel #billing_first_name_field,
  .restpy-checkout-body .commerce-checkout-panel #billing_phone_field {
    width: 100% !important;
    float: none;
    margin-right: 0;
  }
}
