/* Raudhah IQ order site (order.raudhahiq.my): the checkout and order pages, drawn like the
   "Pilih pakej anda" form on the sales page (lavender page, white card, purple type, orange button).
   WooCommerce's own stylesheets are not loaded (functions.php), so everything is here. */

@font-face {
  font-family: "Mona Sans";
  src: url("mona-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("mona-sans-italic-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f3efff;
  --card: #fff;
  --ink: #1e1b4b;
  --ink-2: #6b6290;
  --deep: #2e1065;
  --violet: #7c3aed;
  --violet-soft: #f5f0ff;
  --field: #faf8ff;
  --line: #ddd6fe;
  --night: #05010c;
  --shadow: 0 10px 40px -16px rgb(76 29 149 / 0.45);
  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--violet); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ro-wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------------ bar */
.ro-bar { background: var(--night); color: #c4b5fd; }
.ro-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.ro-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ro-logo img { display: block; }
.ro-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.ro-icon { flex: none; }

/* ------------------------------------------------------------------ page */
.ro-main { padding: 22px 0 44px; min-height: 70vh; }
.ro-chevrons { display: flex; justify-content: center; gap: 46px; margin: 2px 0 18px; }
.ro-chevrons span { width: 22px; height: 22px; border-right: 6px solid var(--violet); border-bottom: 6px solid #ffd21f; rotate: 45deg; border-radius: 2px; }

.ro-card,
.ro-summary,
form.woocommerce-checkout,
.woocommerce-order-overview,
.woocommerce-order-details,
.woocommerce-customer-details,
.ro-wa,
.ro-baucar,
#order_review:only-child {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* headings, in the sales page's italic capitals */
.ro-card h1,
form.woocommerce-checkout h3,
.woocommerce-order-details__title,
.woocommerce-column__title,
.ro-wa h2,
.ro-baucar h2,
.woocommerce-thankyou-order-received {
  margin: 0;
  color: var(--deep);
  font-style: italic;
  font-weight: 900;
  font-stretch: 78%;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.005em;
}
form.woocommerce-checkout h3 { font-size: 1.45rem; }

/* ------------------------------------------------------------------ notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  list-style: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.woocommerce-error { background: #fff1f2; color: #9f1239; box-shadow: inset 0 0 0 1.5px #fecdd3; }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce-message { background: #f0fdf4; color: #166534; box-shadow: inset 0 0 0 1.5px #bbf7d0; }
.woocommerce-info { background: #eef2ff; color: #3730a3; box-shadow: inset 0 0 0 1.5px #c7d2fe; }
.woocommerce-error a, .woocommerce-message a, .woocommerce-info a { color: inherit; font-weight: 800; }

/* ------------------------------------------------------------------ chosen pack */
.ro-summary { display: grid; gap: 10px; margin: 0 0 14px; padding: 14px 16px; }
.ro-summary ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ro-summary li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ro-thumb { display: block; width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #14062e; }
.ro-summary-name { display: grid; min-width: 0; }
.ro-summary-name b { color: var(--ink); font-weight: 800; line-height: 1.25; }
.ro-summary-name small { color: var(--ink-2); font-size: 0.8125rem; }
.ro-summary-price { color: #4c1d95; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ro-summary-price del { display: none; }
.ro-change { justify-self: start; font-size: 0.875rem; font-weight: 800; text-decoration: none; }
.ro-change::before { content: "\2190\00a0"; }

/* ------------------------------------------------------------------ the form */
form.woocommerce-checkout { display: grid; gap: 18px; padding: 20px 16px 22px; }
.col2-set, .col2-set .col-1, .col2-set .col-2 { display: grid; gap: 18px; width: auto; float: none; }
.woocommerce-billing-fields { display: grid; gap: 14px; }
.woocommerce-billing-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 10px;
}
.woocommerce-additional-fields > h3 { display: none; }
.form-row { display: grid; gap: 6px; margin: 0; padding: 0; grid-column: 1 / -1; min-width: 0; }
.form-row-first { grid-column: 1; }
.form-row-last { grid-column: 2; }
.form-row label { color: var(--deep); font-size: 0.875rem; font-weight: 750; line-height: 1.3; }
.form-row .optional { color: var(--ink-2); font-weight: 500; }
.form-row abbr.required { color: #e11d48; text-decoration: none; border: 0; }
.woocommerce-input-wrapper { display: block; }
#billing_country_field { display: none !important; } /* WooCommerce's script sets display:block inline */

.input-text,
.form-row select,
.form-row textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  appearance: none;
  -webkit-appearance: none;
}
.form-row select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}
.form-row textarea { min-height: 86px; resize: vertical; }
.input-text::placeholder, .form-row textarea::placeholder { color: #a39bc4; }
.input-text:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(124 58 237 / 0.18);
}
.woocommerce-invalid .input-text,
.woocommerce-invalid select { border-color: #e11d48; background: #fff7f8; }

/* ------------------------------------------------------------------ order review */
#order_review_heading { margin-top: 4px; padding-top: 18px; border-top: 1px dashed var(--line); }
.woocommerce-checkout-review-order { display: grid; gap: 16px; }
.shop_table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.shop_table th, .shop_table td { padding: 10px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; font-weight: 600; }
.shop_table th:last-child, .shop_table td:last-child { text-align: right; }
.shop_table thead th { padding-top: 0; color: var(--ink-2); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.shop_table .product-name { color: var(--ink); font-weight: 750; }
.shop_table .product-quantity { color: var(--ink-2); font-weight: 600; }
.shop_table tfoot th { color: var(--ink-2); font-weight: 650; }
.shop_table .amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop_table tr.order-total th, .shop_table tr.order-total td { border-bottom: 0; padding-top: 14px; color: #4c1d95; font-size: 1.05rem; font-weight: 800; }
.shop_table tr.order-total .amount { font-size: 1.5rem; font-weight: 900; }
#shipping_method { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; text-align: right; }
#shipping_method li { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
#shipping_method input { accent-color: var(--violet); }
#shipping_method label { font-weight: 700; color: var(--ink); }
.woocommerce-shipping-destination,
.woocommerce-shipping-contents { margin: 4px 0 0; color: var(--ink-2); font-size: 0.8125rem; font-weight: 500; }

/* payment methods, as cards like the pack options */
.woocommerce-checkout-payment { display: grid; gap: 14px; }
.wc_payment_methods { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wc_payment_method {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--field);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.wc_payment_method:has(> input:checked) { background: var(--violet-soft); box-shadow: inset 0 0 0 3px var(--violet); }
.wc_payment_method > input { width: 20px; height: 20px; margin: 0; accent-color: var(--violet); }
.wc_payment_method > label { color: var(--ink); font-weight: 800; cursor: pointer; }
.wc_payment_method > label img { max-height: 22px; width: auto; margin-left: 6px; vertical-align: middle; }
.wc_payment_method > label::after { content: ""; position: absolute; inset: 0; }
.wc_payment_method .payment_box { grid-column: 2; position: relative; z-index: 1; color: var(--ink-2); font-size: 0.875rem; line-height: 1.45; }
.wc_payment_method .payment_box p { margin: 0; }
.woocommerce-terms-and-conditions-wrapper:empty, .woocommerce-privacy-policy-text:empty { display: none; }
/* the line above the button that links the Terms of Service and the Privacy Policy */
.woocommerce-privacy-policy-text p { margin: 0; color: var(--ink-2); font-size: 0.8125rem; line-height: 1.45; text-align: center; text-wrap: pretty; }
.woocommerce-privacy-policy-text a { font-weight: 700; text-underline-offset: 2px; }

/* the button, like the sales page's orange call to action */
.place-order { display: grid; gap: 10px; margin: 0; padding: 0; }
#place_order,
.ro-cta,
.woocommerce-thankyou-order-failed-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  margin: 4px 0 8px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb547 0%, #ff8a00 100%);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  font-stretch: 90%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 7px 0 #b35900, 0 14px 30px rgb(255 138 0 / 0.42);
  transition: translate 0.12s, box-shadow 0.12s;
}
#place_order:active, .ro-cta:active, .woocommerce-thankyou-order-failed-actions .button:active { translate: 0 4px; box-shadow: 0 3px 0 #b35900, 0 8px 20px rgb(255 138 0 / 0.4); }
#place_order:focus-visible, .ro-cta:focus-visible, .woocommerce-thankyou-order-failed-actions .button:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
#place_order[disabled] { opacity: 0.6; cursor: progress; }

/* WooCommerce's "working" veil while totals update */
.blockUI.blockOverlay { background: rgb(255 255 255 / 0.65) !important; opacity: 1 !important; border-radius: 18px; }

/* ------------------------------------------------------------------ order received */
.woocommerce-order { display: grid; gap: 14px; }
.woocommerce-thankyou-order-received { font-size: 1.6rem; text-align: center; padding: 6px 4px 4px; }
.woocommerce-order-overview { display: grid; gap: 10px; margin: 0; padding: 16px; list-style: none; }
.woocommerce-order-overview li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 0.875rem; }
.woocommerce-order-overview li strong { color: var(--ink); font-weight: 800; text-align: right; }
.woocommerce-order > p { margin: 0; padding: 14px 16px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.ro-wa { display: grid; gap: 10px; padding: 18px 16px; text-align: center; }
.ro-wa h2 { font-size: 1.45rem; }
.ro-wa p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.ro-wa .ro-cta { background: linear-gradient(180deg, #3ee08a 0%, #16a34a 100%); box-shadow: 0 7px 0 #0f6b33, 0 14px 30px rgb(22 163 74 / 0.38); }
.ro-wa .ro-cta:active { box-shadow: 0 3px 0 #0f6b33, 0 8px 20px rgb(22 163 74 / 0.35); }
/* an online payment that did not go through: paying again comes first, WhatsApp is the way out */
.ro-wa .ro-cta--pay { background: linear-gradient(180deg, #ffb547 0%, #ff8a00 100%); box-shadow: 0 7px 0 #b35900, 0 14px 30px rgb(255 138 0 / 0.42); }
.ro-wa .ro-cta--pay:active { box-shadow: 0 3px 0 #b35900, 0 8px 20px rgb(255 138 0 / 0.4); }
.ro-wa .ro-cta--quiet { min-height: 50px; font-size: 0.95rem; box-shadow: 0 5px 0 #0f6b33, 0 10px 22px rgb(22 163 74 / 0.3); }
.woocommerce-order > p.woocommerce-thankyou-order-failed { color: #b42318; font-weight: 700; text-align: center; }
.woocommerce-order > p.woocommerce-thankyou-order-failed-actions { display: grid; padding: 0; background: none; box-shadow: none; }
.woocommerce-order-details, .woocommerce-customer-details { display: grid; gap: 12px; padding: 18px 16px; }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: 1.2rem; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.55; }
.woocommerce-customer-details--phone, .woocommerce-customer-details--email { margin: 6px 0 0; }
.wc-bacs-bank-details-heading { margin: 0; font-size: 1.1rem; }
.wc-bacs-bank-details { margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------------ vouchers */
/* the code box at the top of the checkout: a field with its button inside */
.woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 10px; }
form.checkout_coupon { position: relative; margin: 0 0 14px; }
form.checkout_coupon p { margin: 0; }
form.checkout_coupon .clear { display: none; }
form.checkout_coupon .input-text { padding-right: 112px; text-transform: uppercase; letter-spacing: 0.04em; }
form.checkout_coupon .input-text::placeholder { text-transform: none; letter-spacing: 0; }
form.checkout_coupon button {
  position: absolute; top: 6px; right: 6px; height: 38px; /* a fixed height: WooCommerce puts a refused code's reason under the field, inside the form */
  padding: 0 16px; border: 0; border-radius: 9px;
  background: var(--violet); color: #fff; font: inherit; font-size: 0.9375rem; font-weight: 800; cursor: pointer;
}
form.checkout_coupon button:active { transform: translateY(1px); }
.shop_table tr.cart-discount td { color: #15803d; }
.woocommerce-remove-coupon { margin-left: 6px; color: var(--ink-2); font-size: 0.8125rem; font-weight: 700; }

/* the thank-you page: the buyer's voucher, to copy or give away */
.ro-baucar { display: grid; gap: 12px; margin-top: 14px; padding: 18px 16px; text-align: center; }
.ro-baucar h2 { font-size: 1.45rem; }
.ro-baucar p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; text-wrap: pretty; }
.ro-baucar p b { color: var(--deep); }
.ro-baucar .ro-baucar-code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 16px; border: 2px dashed #c4b5fd; border-radius: 14px; background: var(--violet-soft);
}
.ro-baucar-code span { color: var(--deep); font-size: 1.35rem; font-weight: 900; letter-spacing: 0.08em; overflow-wrap: anywhere; text-align: left; }
.ro-baucar-code button {
  flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px;
  background: var(--violet); color: #fff; font: inherit; font-size: 0.875rem; font-weight: 800; cursor: pointer;
}
.ro-baucar .ro-cta { background: linear-gradient(180deg, #3ee08a 0%, #16a34a 100%); box-shadow: 0 7px 0 #0f6b33, 0 14px 30px rgb(22 163 74 / 0.38); }
.ro-baucar .ro-cta:active { box-shadow: 0 3px 0 #0f6b33, 0 8px 20px rgb(22 163 74 / 0.35); }

/* ------------------------------------------------------------------ 404 */
.ro-404 { display: grid; gap: 12px; padding: 22px 18px; text-align: center; }
.ro-404 h1 { font-size: 1.6rem; }
.ro-404 p { margin: 0; color: var(--ink-2); }

/* ------------------------------------------------------------------ policy pages (Terms of Service, Privacy Policy) */
.ro-doc { padding: 24px 18px 26px; }
.ro-doc h1 { font-size: 1.9rem; }
.ro-doc h2 { margin: 26px 0 8px; color: var(--deep); font-size: 1.05rem; font-weight: 900; line-height: 1.25; text-wrap: balance; }
.ro-doc h2::before { content: ""; display: block; width: 28px; height: 4px; margin-bottom: 9px; border-radius: 2px; background: linear-gradient(90deg, var(--violet), #ffd21f); }
.ro-doc p, .ro-doc li { font-size: 0.9375rem; line-height: 1.6; overflow-wrap: break-word; }
.ro-doc p { margin: 0 0 10px; }
.ro-doc ul { margin: 0 0 10px; padding-left: 1.15em; }
.ro-doc li { margin: 0 0 6px; }
.ro-doc li::marker { color: var(--violet); }
.ro-doc strong { color: var(--deep); }
.ro-doc a { font-weight: 700; text-underline-offset: 2px; }
.ro-doc code { padding: 1px 5px; border-radius: 6px; background: var(--violet-soft); font-size: 0.875em; }
.ro-doc .ro-doc-date { margin: 10px 0 18px; color: var(--ink-2); font-size: 0.8125rem; }
.ro-doc .ro-doc-contact { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--violet-soft); line-height: 1.7; }
.ro-doc-en { margin-top: 30px; padding-top: 4px; border-top: 2px dashed var(--line); scroll-margin-top: 16px; }

/* ------------------------------------------------------------------ footer */
.ro-foot { padding: 24px 0 32px; background: var(--night); color: #a59bc7; font-size: 0.8125rem; }
.ro-foot p { margin: 0; }
.ro-foot-links { display: grid; gap: 12px; margin-bottom: 14px !important; }
.ro-foot a { display: inline-flex; align-items: center; gap: 8px; color: #ede9fe; font-weight: 700; text-decoration: none; }
.ro-foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px !important; }
.ro-foot .ro-foot-legal a { color: #c4b5fd; font-weight: 600; }
.ro-fine { line-height: 1.5; }

@media (hover: hover) {
  .ro-foot a:hover { color: #fff; }
  .ro-change:hover { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  #place_order, .ro-cta, .woocommerce-thankyou-order-failed-actions .button { transition: none; }
}

/* the pack name gets the width; the price never wraps */
.woocommerce-checkout-review-order-table td.product-name { width: 100%; }
.woocommerce-checkout-review-order-table td.product-total { padding-left: 12px; white-space: nowrap; }
