/*
Theme Name: Romail Publications
Theme URI: https://romailpublications.com
Author: Romail Publications
Author URI: https://romailpublications.com
Description: High-performance, lightweight Modern Bookstore WooCommerce Theme crafted from the Page & Pine design system.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: romailpublications
Tags: e-commerce, bookstore, woocommerce, grid-layout, clean, modern, responsive
*/

/* Reset & Core Base Rules */
@layer base {

  html,
  body {
    margin: 0;
    padding: 0;
    background-color: #fff8f3;
    color: #1e1b17;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
}

/* Modern Sans Typography Override from Stitch */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.font-headline-lg,
.font-headline-md,
.font-headline-sm,
.font-headline-lg-mobile,
.font-display-lg,
.font-display-lg-mobile,
[class*="font-headline"],
[class*="font-display"],
[class*="serif"] {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}

/* Typography scale utilities matching Stitch tokens */
.font-headline-lg {
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.font-headline-md {
  font-size: 26px;
  line-height: 34px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.font-headline-sm {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.book-card-title {
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.font-body-lg {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.font-body-md {
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
}

.font-body-sm {
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}

.font-label-lg {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.font-label-md {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.font-label-sm {
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* Custom Scrollbar styling */
::-webkit-scrollbar {
  display: none;
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f4ede6;
}

::-webkit-scrollbar-thumb {
  background: #dcc2b0;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ee861f;
}

/* iOS Safari zooms the page when a focused editable control is smaller than
   16px. These are the currently audited controls that resolve below 16px on
   phones; intentionally do not use a global input rule, so controls that are
   already larger retain their existing design. */
@media (max-width: 767px) {
  #header-search-input,
  #mobile-search-dropdown input[type="search"],
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row input[type="text"],
  .woocommerce form .form-row input[type="email"],
  .woocommerce form .form-row input[type="password"],
  .woocommerce form .form-row input[type="tel"],
  .woocommerce form .form-row select,
  .woocommerce form .form-row textarea,
  .romail-checkout-wrapper input[type="text"],
  .romail-checkout-wrapper input[type="email"],
  .romail-checkout-wrapper input[type="tel"],
  .romail-checkout-wrapper input[type="number"],
  .romail-checkout-wrapper input[type="password"],
  .romail-checkout-wrapper select,
  .romail-checkout-wrapper textarea,
  .select2-search--dropdown .select2-search__field,
  .woocommerce-cart-wrapper .cart-page-qty-input,
  .woocommerce-cart-wrapper #coupon_code {
    font-size: 16px !important;
  }
}

/* Category Filter Pill Active State & Scroll Container */
#category-filter-group {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
}

#category-filter-group:active {
  cursor: grabbing;
}

#category-filter-group::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1023px) {
  #cat-nav-arrows {
    display: none !important;
  }
}

.cat-pill.active {
  background-color: #1e1b17 !important;
  color: #fff8f3 !important;
}

/* Keep the header search field and adjacent utility controls on one baseline. */
#header-cart-pill,
#header-account-pill {
  height: 38px;
}

/* Explicit mobile search trigger styling. This avoids relying on generated
   utility classes for a control that is only present in the compact header. */
#mobile-search-toggle {
  width: 42px;
  height: 38px;
  flex: 0 0 42px;
  padding: 0;
  background-color: #ffffff;
  color: #ee861f;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

#mobile-search-toggle:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: #d97514;
}

#mobile-search-toggle .material-symbols-outlined {
  font-size: 24px;
}

/* Phone header and overlays: keep every utility control and popover inside
   the viewport, regardless of the width of its triggering button. */
@media (max-width: 639px) {
  header > div {
    gap: 0.5rem !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  #header-cart-pill {
    width: 4.5rem;
    min-width: 4.5rem;
    gap: 0.375rem;
    padding-right: 0.625rem;
    padding-left: 0.625rem;
    justify-content: center;
  }

  #header-account-pill {
    width: 3rem;
    min-width: 3rem;
    padding-right: 0;
    padding-left: 0;
    justify-content: center;
  }

  #header-cart-pill .font-label-md,
  #header-account-pill .font-label-md,
  #header-cart-wrapper + div {
    display: none;
  }

  #mobile-search-dropdown {
    position: fixed;
    top: 4.5rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

  /* Give the expanded search a comfortably sized input and submit target. */
  #mobile-search-dropdown {
    padding: 0.625rem !important;
  }

  #mobile-search-dropdown form {
    height: 50px;
    min-height: 50px;
    padding: 0.25rem 0.25rem 0.25rem 1rem !important;
  }

  #mobile-search-dropdown input[type="search"] {
    font-size: 18px !important;
    padding-right: 0.75rem !important;
  }

  #mobile-search-dropdown button[type="submit"] {
    width: auto !important;
    height: 42px !important;
    min-width: 100px;
    flex: 0 0 auto;
    gap: 0.375rem;
    padding: 0 1rem;
    border-radius: 0.875rem !important;
    font-size: 16px;
    font-weight: 700;
  }

  #mobile-search-dropdown button[type="submit"] .material-symbols-outlined {
    font-size: 22px !important;
  }

  /* Read the translated button label from aria-label. This also keeps the
     visible text available while an older cached header fragment is served. */
  #mobile-search-dropdown button[type="submit"]::after {
    content: attr(aria-label);
    display: inline-block;
  }

  #mobile-search-dropdown .mobile-search-submit-label {
    display: none !important;
  }

  #cart-dropdown-container {
    position: fixed;
    top: 4.5rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 5.25rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #cart-dropdown-items {
    max-height: min(350px, calc(100dvh - 19rem));
  }

  .woocommerce-cart-wrapper .sticky,
  .romail-checkout-wrapper .sticky {
    position: static;
  }

  .woocommerce-cart-wrapper .cart-item-row,
  .romail-checkout-wrapper .bg-white.rounded-2xl {
    padding: 1rem;
  }

  .woocommerce-cart-wrapper > .mb-6 {
    margin-bottom: 0.75rem !important;
  }

  .woocommerce-cart-wrapper > .mb-6 > div {
    gap: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .woocommerce-cart-wrapper #cart-items-container > * + * {
    margin-top: 0.75rem !important;
  }

  .woocommerce-cart-wrapper .cart-item-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
  }

  .woocommerce-cart-wrapper .cart-item-row > div:nth-child(1) {
    grid-column: 1 / -1;
    gap: 0.75rem;
  }

  .woocommerce-cart-wrapper .cart-item-row > div:nth-child(1) > div:first-child {
    width: 4.25rem;
    height: 5.25rem;
  }

  .woocommerce-cart-wrapper .cart-item-row > div:nth-child(2) {
    grid-column: 1;
    width: auto !important;
    justify-content: flex-start !important;
  }

  .woocommerce-cart-wrapper .cart-item-row > div:nth-child(3) {
    grid-column: 2;
    width: auto !important;
    justify-content: flex-end !important;
    text-align: right;
  }

  .woocommerce-cart-wrapper .cart-item-row > div:nth-child(3) > span {
    display: none;
  }

  .romail-checkout-wrapper .woocommerce-checkout-review-order,
  .romail-checkout-wrapper .woocommerce-checkout-payment,
  .woocommerce-cart-wrapper .item-subtotal-display {
    min-width: 0;
  }
}

/* Smoothly lift support above footer content only at the exact end of a page. */
#floating-whatsapp-widget {
  transition: bottom 200ms ease-out;
}

#floating-whatsapp-widget.is-near-page-end {
  bottom: 100px !important;
}

@media (max-width: 639px) {
  .romail-footer-credit {
    display: block;
    margin-top: 0.25rem;
  }

  .romail-footer-legal {
    align-items: flex-start !important;
  }

  .romail-footer-copyright,
  .romail-footer-legal .footer-bottom-nav {
    width: 100%;
    text-align: left;
  }

  .romail-footer-legal .footer-bottom-nav ul,
  .romail-footer-legal .footer-bottom-nav > div {
    justify-content: flex-start !important;
  }
}

/* Remove Number Spinner for Quantity Steppers */
input.cart-page-qty-input::-webkit-outer-spin-button,
input.cart-page-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.cart-page-qty-input[type=number] {
  -moz-appearance: textfield;
}

/* Styled WooCommerce Notices (Cart & Checkout) */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: 1rem !important;
  font-family: inherit !important;
  font-size: 0.875rem !important;
  margin-bottom: 1.5rem !important;
  padding: 1rem 1.5rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  list-style: none !important;
}

.woocommerce-message {
  background-color: #f6fbf5 !important;
  border: 1px solid #c7e6c5 !important;
  color: #1e4620 !important;
}

.woocommerce-error {
  background-color: #fff5f5 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

.woocommerce-info {
  background-color: #faf2ec !important;
  border: 1px solid #ebdcd0 !important;
  color: #554336 !important;
}

.woocommerce-message a.button,
.woocommerce-error a.button,
.woocommerce-info a.button {
  background-color: #ee861f !important;
  color: #ffffff !important;
  border-radius: 0.5rem !important;
  padding: 0.35rem 0.85rem !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  margin-left: 0.75rem !important;
  float: right !important;
}

/* Primary Menu on Orange Header */
header .primary-menu>li>a {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  transition: all 0.15s ease;
}

header .primary-menu>li>a:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

header .primary-menu>li.current-menu-item>a,
header .primary-menu>li.current_page_item>a,
header .primary-menu>li.current-menu-ancestor>a {
  color: #ffffff !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

/* Mobile version of the assigned Primary Menu. */
@media (max-width: 1023px) {
  #header-brand-navigation {
    gap: 0.75rem !important;
  }

  .mobile-primary-menu > li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-primary-menu > li > a {
    display: flex;
    padding: 0.75rem 0;
    color: #ffffff !important;
    font-size: 0.9375rem;
    font-weight: 600;
  }

  .mobile-primary-menu .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    margin: -0.125rem 0 0.5rem 1rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    list-style: none;
  }

  .mobile-primary-menu .sub-menu li a {
    display: block;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.875rem;
  }

  .mobile-primary-menu .sub-menu li a:hover {
    background: transparent;
    color: #ffffff !important;
  }
}

/* On roomier phones, prefer the Cart label over unused header space. */
@media (min-width: 400px) and (max-width: 639px) {
  #header-brand-navigation {
    gap: 0.25rem !important;
  }

  #header-brand-navigation > a {
    max-width: 7rem;
  }

  #header-brand-navigation > a img,
  #header-brand-navigation > a svg {
    max-width: 100%;
  }

  #header-utility-controls {
    gap: 0.375rem !important;
  }

  #header-cart-pill {
    width: auto;
    min-width: 6.5rem;
  }

  #header-cart-pill .font-label-md {
    display: inline !important;
  }
}

/* Header compression before desktop navigation would collide with utilities. */
@media (min-width: 1024px) and (max-width: 1279px) {
  #header-search-form {
    width: clamp(9.5rem, 16vw, 14rem);
    min-width: 9.5rem;
    flex: 0 1 14rem;
  }

  #header-utility-controls {
    gap: 0.75rem !important;
  }

  header .primary-menu {
    gap: 0.875rem !important;
  }
}

/* Keep the account entry reachable when the header has its least desktop room. */
@media (min-width: 1024px) and (max-width: 1199px) {
  #header-account-pill {
    width: 3rem;
    min-width: 3rem;
    padding-right: 0;
    padding-left: 0;
    justify-content: center;
  }

  #header-account-pill .font-label-md {
    display: none;
  }
}

/* Tablet header: navigation is in the burger menu, so reserve room for controls. */
@media (min-width: 640px) and (max-width: 1023px) {
  #header-search-form {
    width: clamp(9rem, 25vw, 12rem);
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  #header-account-pill {
    width: 3rem;
    min-width: 3rem;
    padding-right: 0;
    padding-left: 0;
    justify-content: center;
  }

  #header-account-pill .font-label-md {
    display: none;
  }
}

/* Dynamic Primary Menu Dropdowns */
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background-color: #ffffff;
  border: 1px solid #ede7df;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  z-index: 50;
  list-style: none;
  margin: 0.25rem 0 0 0;
}

.primary-menu .menu-item-has-children:hover>.sub-menu,
.primary-menu .menu-item-has-children:focus-within>.sub-menu {
  display: block;
}

.primary-menu .sub-menu li {
  margin: 0;
  padding: 0;
}

.primary-menu .sub-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: #554336;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.primary-menu .sub-menu li a:hover {
  background-color: #faf2ec;
  color: #ee861f;
}

/* Neutralize default WooCommerce button styles */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: inherit;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  padding: inherit;
  border-radius: inherit;
  border: none;
  box-shadow: none;
}

/* WooCommerce Price formatting overrides */
.woocommerce-Price-amount {
  font-weight: 600;
  color: #1e1b17;
}

.woocommerce-Price-currencySymbol {
  font-size: 0.9em;
  margin-right: 2px;
}

del .woocommerce-Price-amount {
  color: #887364;
  font-weight: 400;
  font-size: 0.85em;
  margin-right: 4px;
}

ins {
  text-decoration: none;
}

ins .woocommerce-Price-amount {
  color: #914c00;
  font-weight: 700;
}

/* Listing Cards Book Price (16px) */
.book-card-price,
.book-card .book-card-price {
  font-size: 16px !important;
  line-height: 22px !important;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.book-card .woocommerce-Price-amount,
.book-card-price .woocommerce-Price-amount {
  font-size: 16px !important;
  font-weight: 700 !important;
}

.book-card del .woocommerce-Price-amount,
.book-card-price del .woocommerce-Price-amount {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #887364 !important;
}

.book-card ins .woocommerce-Price-amount,
.book-card-price ins .woocommerce-Price-amount {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #914c00 !important;
}

/* Readers Also Enjoyed Price Enhancement */
.related-book-price {
  font-size: 1.125rem !important;
  line-height: 1.5rem;
  font-weight: 700;
}

.related-book-price .woocommerce-Price-amount {
  font-size: 1.125rem !important;
  font-weight: 700;
}

.related-book-price del .woocommerce-Price-amount {
  font-size: 0.925rem !important;
  font-weight: 400;
}

/* Spinner Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 0.75s linear infinite !important;
  display: inline-block !important;
}

/* Added-to-cart feedback */
.added_to_cart,
.woocommerce-cart .wc-empty-cart-message,
.woocommerce-cart .cart-empty.woocommerce-info {
  display: none !important;
}

.add_to_cart_button,
.add-btn,
#add-to-cart-btn {
  white-space: nowrap !important;
}

.add_to_cart_button.loading,
#add-to-cart-btn.loading {
  opacity: 0.85 !important;
  pointer-events: none !important;
}

.add_to_cart_button.added,
#add-to-cart-btn.added {
  background-color: #55624f !important;
  color: #ffffff !important;
}

/* Header Cart Pill Feedback Animation */
@keyframes cartBump {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.12);
  }

  65% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1);
  }
}

.cart-bump {
  animation: cartBump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* WordPress Admin Bar offset for Sticky Header */
.admin-bar header.sticky {
  top: var(--romail-admin-bar-height, 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar header.sticky {
    top: var(--romail-admin-bar-height, 46px);
  }
}

/* Custom Scrollbar for Cart Dropdown Items */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e7e5e4;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #d6d3d1;
}

/* ==========================================================================
   WooCommerce Form Controls & Base UI
   ========================================================================== */
.woocommerce form .form-row {
  margin-bottom: 1rem;
  padding: 0;
}

.woocommerce form .form-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #554336;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.woocommerce form .form-row label .required {
  color: #c2410c;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

.woocommerce form .form-row-wide,
.woocommerce-page form .form-row-wide {
  clear: both;
  width: 100%;
}

@media (min-width: 640px) {

  .woocommerce form .form-row-first,
  .woocommerce-page form .form-row-first {
    float: left;
    width: 48.5%;
  }

  .woocommerce form .form-row-last,
  .woocommerce-page form .form-row-last {
    float: right;
    width: 48.5%;
  }
}

.woocommerce form .form-row::after {
  content: "";
  display: table;
  clear: both;
}

.woocommerce form input.input-text,
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="password"],
.woocommerce form input[type="tel"] {
  width: 100%;
  height: 40px;
  min-height: 40px;
  font-family: inherit;
  font-size: 0.875rem;
  background-color: #ffffff;
  border: 1px solid #ded5cb;
  border-radius: 0.5rem;
  padding: 0.45rem 0.85rem;
  color: #1c2633;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.woocommerce form select {
  width: 100%;
  height: 40px;
  min-height: 40px;
  font-family: inherit;
  font-size: 0.875rem;
  background-color: #ffffff;
  border: 1px solid #ded5cb;
  border-radius: 0.5rem;
  padding: 0.45rem 2.25rem 0.45rem 0.85rem;
  color: #1c2633;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238c827a' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem 1rem;
  cursor: pointer;
}

.woocommerce form textarea {
  width: 100%;
  min-height: 90px;
  font-family: inherit;
  font-size: 0.875rem;
  background-color: #ffffff;
  border: 1px solid #ded5cb;
  border-radius: 0.5rem;
  padding: 0.6rem 0.85rem;
  color: #1c2633;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.woocommerce form input.input-text:focus,
.woocommerce form input[type="text"]:focus,
.woocommerce form input[type="email"]:focus,
.woocommerce form input[type="password"]:focus,
.woocommerce form input[type="tel"]:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus {
  border-color: #ee861f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(238, 134, 31, 0.15);
}

.woocommerce form input.romail-input-error,
.woocommerce form input.input-text.romail-input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626 !important;
  background-color: #fef2f2 !important;
}

.romail-phone-error-msg {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 5px;
  line-height: 1.3;
}

/* ==========================================================================
   WooCommerce Select2 / SelectWoo Styling
   ========================================================================== */
.select2-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.select2-container .selection {
  display: block;
  width: 100%;
}

.select2-container--default .select2-selection--single {
  height: 40px !important;
  min-height: 40px !important;
  background-color: #ffffff !important;
  border: 1px solid #ded5cb !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 0.85rem !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  outline: none !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
  border-color: #ee861f !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(238, 134, 31, 0.15) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #1c2633 !important;
  line-height: 38px !important;
  padding-left: 0 !important;
  padding-right: 1.75rem !important;
  font-size: 0.875rem !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #8c827a !important;
  font-weight: 400 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  right: 0.85rem !important;
  width: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #8c827a transparent transparent transparent !important;
  border-style: solid !important;
  border-width: 5px 4.5px 0 4.5px !important;
  height: 0 !important;
  left: 50% !important;
  margin-left: -4.5px !important;
  margin-top: -2px !important;
  position: absolute !important;
  top: 50% !important;
  width: 0 !important;
  transition: transform 0.2s ease !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #ee861f transparent !important;
  border-width: 0 4.5px 5px 4.5px !important;
}

.select2-dropdown {
  background-color: #ffffff !important;
  border: 1px solid #ede7df !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.05) !important;
  margin-top: 4px !important;
  overflow: hidden !important;
  z-index: 99999 !important;
  font-family: inherit !important;
}

.select2-container--open .select2-dropdown--below {
  border-top: 1px solid #ede7df !important;
  border-radius: 0.75rem !important;
}

.select2-container--open .select2-dropdown--above {
  border-bottom: 1px solid #ede7df !important;
  border-radius: 0.75rem !important;
  margin-top: -4px !important;
}

.select2-search--dropdown {
  padding: 0.625rem 0.75rem !important;
  background-color: #faf8f5 !important;
  border-bottom: 1px solid #ede7df !important;
}

.select2-search--dropdown .select2-search__field {
  height: 38px !important;
  padding: 0.35rem 0.75rem !important;
  border: 1px solid #ded5cb !important;
  border-radius: 0.5rem !important;
  font-size: 0.8125rem !important;
  font-family: inherit !important;
  color: #1c2633 !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: #ee861f !important;
  box-shadow: 0 0 0 2px rgba(238, 134, 31, 0.15) !important;
}

.select2-results {
  padding: 0.35rem 0 !important;
}

.select2-results__options {
  max-height: 220px !important;
  overflow-y: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.select2-results__options::-webkit-scrollbar {
  width: 6px;
}

.select2-results__options::-webkit-scrollbar-track {
  background: #faf8f5;
}

.select2-results__options::-webkit-scrollbar-thumb {
  background: #ded5cb;
  border-radius: 3px;
}

.select2-results__option {
  padding: 0.65rem 1rem !important;
  font-size: 0.875rem !important;
  font-family: inherit !important;
  color: #1c2633 !important;
  cursor: pointer !important;
  transition: background-color 0.12s ease, color 0.12s ease !important;
  line-height: 1.4 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #fef4eb !important;
  color: #ee861f !important;
  font-weight: 600 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #f5efe9 !important;
  color: #1c2633 !important;
  font-weight: 700 !important;
}

.select2-container--default .select2-results__option[aria-disabled=true] {
  color: #b0a59b !important;
  background-color: transparent !important;
  cursor: not-allowed !important;
}

/* ==========================================================================
   WooCommerce Customer Auth (Separated Login & Register)
   ========================================================================== */
.wc-page-content:has(.romail-auth-container),
.woocommerce-account:not(.logged-in) .wc-page-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.wc-page-content:has(.romail-auth-container) .woocommerce,
.woocommerce-account:not(.logged-in) .woocommerce {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.wc-page-content:has(.romail-auth-container) .woocommerce-notices-wrapper,
.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto 0.75rem auto !important;
}

.romail-auth-container {
  max-width: 440px;
  margin: 0 auto 2.5rem;
  width: 100%;
}

.romail-auth-card {
  background-color: #ffffff;
  border: 1px solid #ede7df;
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.romail-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #faf8f5;
  border: 1px solid #ede7df;
  border-radius: 0.75rem;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.75rem;
  width: 100%;
  box-sizing: border-box;
}

.romail-auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  border: none;
  background-color: transparent;
  color: #8c827a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.romail-auth-tab:hover {
  color: #1c2633;
}

.romail-auth-tab.is-active {
  background-color: #ffffff;
  color: #1c2633;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.romail-auth-panel {
  display: none;
}

.romail-auth-panel.is-active {
  display: block;
  animation: romailFadeIn 0.25s ease;
}

@keyframes romailFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.romail-auth-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.romail-auth-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #1c2633;
  margin: 0 0 0.35rem 0;
  line-height: 1.2;
}

.romail-auth-subtitle {
  font-size: 0.875rem;
  color: #8c827a;
  margin: 0;
  line-height: 1.5;
}

.romail-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.75rem 0 1.25rem 0;
  font-size: 0.8125rem;
}

.romail-auth-options .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #554336;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 500;
}

.romail-auth-options .woocommerce-form-login__rememberme input[type="checkbox"] {
  accent-color: #ee861f;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.romail-auth-options .woocommerce-LostPassword {
  margin: 0;
}

.romail-auth-options .woocommerce-LostPassword a {
  color: #ee861f;
  font-weight: 600;
  text-decoration: none;
}

.romail-auth-options .woocommerce-LostPassword a:hover {
  text-decoration: underline;
}

.romail-auth-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #8c827a;
  background-color: #faf8f5;
  border: 1px solid #f1ece5;
  border-radius: 0.625rem;
  padding: 0.75rem 0.85rem;
  margin: 1rem 0;
  line-height: 1.45;
}

/* ==========================================================================
   CAPTCHA Form Row & Input Group
   ========================================================================== */
.romail-captcha-form-row {
  margin-top: 0.5rem;
}

.romail-captcha-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.romail-captcha-preview {
  height: 40px;
  width: 130px;
  min-width: 130px;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ded5cb;
  background-color: #f5f0ea;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.romail-captcha-preview svg {
  display: block;
  width: 100%;
  height: 100%;
}

.romail-captcha-refresh-btn {
  height: 40px;
  width: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid #ded5cb;
  background-color: #faf8f5;
  color: #554336;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.romail-captcha-refresh-btn:hover {
  background-color: #ede7df;
  color: #ee861f;
  border-color: #ee861f;
}

.romail-captcha-refresh-btn.is-spinning .material-symbols-outlined {
  animation: romailSpin 0.6s linear infinite;
}

@keyframes romailSpin {
  100% {
    transform: rotate(360deg);
  }
}

.romail-captcha-input {
  flex: 1;
  min-width: 80px;
  height: 40px !important;
  min-height: 40px !important;
  font-family: monospace, monospace !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  text-align: center !important;
}

.romail-captcha-input::placeholder {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  font-size: 0.8125rem !important;
  color: #9ca3af !important;
}

#customer_login button.woocommerce-button,
#customer_login button.woocommerce-form-login__submit,
#customer_login button.woocommerce-form-register__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0.55rem 1.5rem;
  border-radius: 0.625rem;
  background-color: #ee861f !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.01em;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(238, 134, 31, 0.22);
  margin-top: 0.5rem;
}

#customer_login button.woocommerce-button:hover,
#customer_login button.woocommerce-form-login__submit:hover,
#customer_login button.woocommerce-form-register__submit:hover {
  background-color: #d97514 !important;
  box-shadow: 0 4px 12px rgba(238, 134, 31, 0.32);
  transform: translateY(-1px);
}

.romail-auth-footer-switch {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1ece5;
  text-align: center;
  font-size: 0.875rem;
  color: #8c827a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.romail-auth-footer-switch a {
  color: #ee861f;
  font-weight: 600;
  text-decoration: none;
}

.romail-auth-footer-switch a:hover {
  text-decoration: underline;
}

.woocommerce-privacy-policy-text p {
  font-size: 0.75rem;
  color: #8c827a;
  line-height: 1.5;
  margin: 1rem 0;
}

.woocommerce-privacy-policy-text a {
  color: #ee861f;
  text-decoration: underline;
}

/* ==========================================================================
   WooCommerce Logged-In My Account Layout
   ========================================================================== */
.woocommerce-account.logged-in .woocommerce {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .woocommerce-account.logged-in .woocommerce {
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
  }
}

/* Navigation Rail */
.woocommerce-MyAccount-navigation {
  background-color: #ffffff;
  border: 1px solid #ede7df;
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 6rem;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #554336;
  text-decoration: none;
  transition: all 0.15s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
  background-color: #faf2ec;
  color: #ee861f;
}

.woocommerce-MyAccount-navigation li.is-active a {
  background-color: #1e1b17;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.woocommerce-MyAccount-navigation-link--dashboard a::before {
  content: "dashboard";
  font-family: 'Material Symbols Outlined';
  font-size: 1.25rem;
  opacity: 0.85;
}

.woocommerce-MyAccount-navigation-link--orders a::before {
  content: "local_shipping";
  font-family: 'Material Symbols Outlined';
  font-size: 1.25rem;
  opacity: 0.85;
}

.woocommerce-MyAccount-navigation-link--downloads a::before {
  content: "download";
  font-family: 'Material Symbols Outlined';
  font-size: 1.25rem;
  opacity: 0.85;
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
  content: "pin_drop";
  font-family: 'Material Symbols Outlined';
  font-size: 1.25rem;
  opacity: 0.85;
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
  content: "person";
  font-family: 'Material Symbols Outlined';
  font-size: 1.25rem;
  opacity: 0.85;
}

.woocommerce-MyAccount-navigation-link--security a::before {
  content: "lock";
  font-family: 'Material Symbols Outlined';
  font-size: 1.25rem;
  opacity: 0.85;
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
  content: "logout";
  font-family: 'Material Symbols Outlined';
  font-size: 1.25rem;
  opacity: 0.85;
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #b91c1c;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

/* Content Area */
.woocommerce-MyAccount-content {
  background-color: #ffffff;
  border: 1px solid #ede7df;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  min-width: 0;
  font-size: 0.9375rem;
  color: #554336;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .woocommerce-MyAccount-content {
    padding: 2.5rem;
    padding-top: 1.5rem;
  }
}

.woocommerce-MyAccount-content p {
  margin-bottom: 1.25rem;
}

.woocommerce-MyAccount-content a {
  color: #ee861f;
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-MyAccount-content a:hover {
  text-decoration: underline;
}

.woocommerce-MyAccount-content strong {
  color: #1c2633;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  font-family: 'Newsreader', Georgia, serif;
  color: #1c2633;
  font-weight: 700;
  margin-top: 0;
}

/* The orders table carries its own border and rounded frame. Remove the
   duplicate shared account card only on the Orders endpoint. */
.romail-account-orders .woocommerce-MyAccount-content {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.romail-account-orders .woocommerce-orders-table {
  margin-top: 0;
  background-color: #ffffff;
}

.romail-account-orders .woocommerce-orders-table th,
.romail-account-orders .woocommerce-orders-table td {
  background-color: #ffffff;
}

/* ==========================================================================
   WooCommerce Orders & Data Tables
   ========================================================================== */
.woocommerce-table,
.woocommerce-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ede7df;
  border-radius: 1rem;
  overflow: hidden;
  margin: 1.5rem 0;
}

.woocommerce-table th,
.woocommerce-orders-table th {
  background-color: #faf8f5;
  color: #8c827a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ebdcd0;
}

.woocommerce-table td,
.woocommerce-orders-table td {
  padding: 1rem;
  font-size: 0.875rem;
  color: #1c2633;
  border-bottom: 1px solid #f1ece5;
  vertical-align: middle;
}

.woocommerce-orders-table__header-romail-order-items,
.woocommerce-orders-table__cell-romail-order-items {
  white-space: nowrap;
}

.woocommerce-table tr:last-child td,
.woocommerce-orders-table tr:last-child td {
  border-bottom: none;
}

.woocommerce-table td a.button,
.woocommerce-orders-table td a.button {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  background-color: #f9f7f4 !important;
  border: 1px solid #ded5cb !important;
  color: #1c2633 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: all 0.15s ease;
  float: none !important;
  margin: 0 !important;
}

.woocommerce-table td a.button:hover,
.woocommerce-orders-table td a.button:hover {
  background-color: #ee861f !important;
  border-color: #ee861f !important;
  color: #ffffff !important;
}

/* Status Badges */
.order-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.order-status.status-completed {
  background-color: #eef7ed;
  color: #2e7d32;
}

.order-status.status-processing {
  background-color: #fef4eb;
  color: #ee861f;
}

.order-status.status-on-hold {
  background-color: #eff4ff;
  color: #1d4ed8;
}

.order-status.status-cancelled,
.order-status.status-failed {
  background-color: #fdf2f2;
  color: #dc2626;
}

/* My Account: View Order summary */
.romail-view-order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid #ede7df;
}

.romail-view-order-summary p {
  margin: 0;
  color: #554336;
}

.romail-view-order-number,
.romail-view-order-date {
  color: #1c2633;
  font-weight: 700;
}

.romail-view-order-summary .order-status.status-processing {
  background-color: #f6eee5;
  color: #914c00;
}

@media (max-width: 640px) {
  .romail-view-order-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==========================================================================
   WooCommerce Addresses
   ========================================================================== */
.woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .woocommerce-Addresses {
    grid-template-columns: 1fr 1fr;
  }
}

.woocommerce-Address {
  background-color: #faf8f5;
  border: 1px solid #ede7df;
  border-radius: 1rem;
  padding: 1.5rem;
}

.woocommerce-Address-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ebdcd0;
  padding-bottom: 0.5rem;
}

.woocommerce-Address-title h3 {
  margin: 0;
  font-size: 1.125rem;
}

.woocommerce-Address-title a.edit {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ee861f;
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 0.375rem;
  background-color: #ffffff;
  border: 1px solid #ded5cb;
  transition: all 0.15s ease;
}

.woocommerce-Address-title a.edit:hover {
  background-color: #ee861f;
  border-color: #ee861f;
  color: #ffffff;
}

.woocommerce-Address address {
  font-style: normal;
  font-size: 0.875rem;
  color: #554336;
  line-height: 1.6;
}

/* ==========================================================================
   Account Details Form & Edit Address Forms
   ========================================================================== */
.woocommerce-EditAccountForm fieldset {
  border: 1px solid #ede7df;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.75rem 0;
  background-color: #faf8f5;
}

.woocommerce-EditAccountForm legend {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1c2633;
  padding: 0 0.5rem;
}

.romail-account-heading {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #1c2633;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.romail-account-subheading {
  font-size: 0.875rem;
  color: #8c827a;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.security-card {
  background-color: #faf8f5;
  border: 1px solid #ede7df;
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  max-width: 580px;
}

.woocommerce-address-fields>p:last-child,
.woocommerce-EditAccountForm>p:last-child,
.security-form-actions {
  margin-top: 1.75rem;
  margin-bottom: 0;
  clear: both;
}

.woocommerce button.button[name="save_address"],
.woocommerce-page button.button[name="save_address"],
.woocommerce button[name="save_address"],
.woocommerce-EditAccountForm button[name="save_account_details"],
.woocommerce button.button[name="save_account_details"],
.woocommerce button[name="save_password"],
.woocommerce button.button[name="save_password"],
.woocommerce button.woocommerce-Button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0.5rem 1.4rem !important;
  border-radius: 0.625rem !important;
  background-color: #ee861f !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.01em !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(238, 134, 31, 0.22) !important;
  margin-top: 0.5rem !important;
  float: none !important;
}

.woocommerce button.button[name="save_address"]:hover,
.woocommerce-page button.button[name="save_address"]:hover,
.woocommerce button[name="save_address"]:hover,
.woocommerce-EditAccountForm button[name="save_account_details"]:hover,
.woocommerce button.button[name="save_account_details"]:hover,
.woocommerce button[name="save_password"]:hover,
.woocommerce button.button[name="save_password"]:hover,
.woocommerce button.woocommerce-Button.button:hover {
  background-color: #d97514 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(238, 134, 31, 0.32) !important;
  transform: translateY(-1px) !important;
}

.woocommerce button.button[name="save_address"]:active,
.woocommerce-page button.button[name="save_address"]:active,
.woocommerce button[name="save_address"]:active,
.woocommerce-EditAccountForm button[name="save_account_details"]:active,
.woocommerce button.button[name="save_account_details"]:active,
.woocommerce button[name="save_password"]:active,
.woocommerce button.button[name="save_password"]:active,
.woocommerce button.woocommerce-Button.button:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 4px rgba(238, 134, 31, 0.2) !important;
}

.woocommerce button.button[name="save_address"]::before,
.woocommerce button[name="save_address"]::before {
  content: "check_circle";
  font-family: 'Material Symbols Outlined';
  font-size: 1.125rem !important;
  font-weight: 500;
  line-height: 1;
  display: inline-block;
}

.woocommerce-EditAccountForm button[name="save_account_details"]::before {
  content: "save";
  font-family: 'Material Symbols Outlined';
  font-size: 1.125rem !important;
  font-weight: 500;
  line-height: 1;
  display: inline-block;
}

.romail-security-form button[name="save_password"]::before,
button[name="save_password"]::before {
  content: "lock_reset";
  font-family: 'Material Symbols Outlined';
  font-size: 1.125rem !important;
  font-weight: 500;
  line-height: 1;
  display: inline-block;
}

@media (max-width: 640px) {

  .woocommerce button.button[name="save_address"],
  .woocommerce-page button.button[name="save_address"],
  .woocommerce button[name="save_address"],
  .woocommerce-EditAccountForm button[name="save_account_details"],
  .woocommerce button[name="save_password"],
  .woocommerce button.woocommerce-Button.button {
    width: 100% !important;
  }
}

/* ==========================================================================
   Lost Password & Reset Screen
   ========================================================================== */
.woocommerce-ResetPassword.lost_reset_password {
  max-width: 500px;
  margin: 2rem auto;
  background-color: #ffffff;
  border: 1px solid #ede7df;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.woocommerce-ResetPassword.lost_reset_password p {
  font-size: 0.875rem;
  color: #554336;
  line-height: 1.6;
}

.woocommerce-ResetPassword button.button {
  width: 100%;
}

/* ==========================================================================
   Special Category: Bundle 2-Column Desktop / 1-Column Mobile Layout
   ========================================================================== */
#book-grid.is-bundle-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 2.25rem 1.5rem !important;
}

@media (min-width: 640px) {
  #book-grid.is-bundle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2.75rem 2rem !important;
  }
}

@media (min-width: 1024px) {
  #book-grid.is-bundle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3.5rem 2.5rem !important;
  }
}

/* Bundle Card Showcase Styling */
#book-grid.is-bundle-grid .book-card .book-cover-container {
  aspect-ratio: 16 / 11;
  background-color: #faf8f5;
  border: 1px solid rgba(238, 134, 31, 0.15);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(30, 27, 23, 0.05);
}

@media (max-width: 639px) {
  #book-grid.is-bundle-grid .book-card .book-cover-container {
    aspect-ratio: 4 / 3;
    padding: 0.75rem;
  }
}

#book-grid.is-bundle-grid .book-card .book-cover-img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  box-shadow: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
  transition: transform 0.3s ease;
}

#book-grid.is-bundle-grid .book-card:hover .book-cover-img {
  transform: scale(1.03);
}

#book-grid.is-bundle-grid .book-card-title {
  font-size: 1.125rem;
  line-height: 1.5;
  min-height: auto;
}
/* ==========================================================================
   Checkout Page — Romail Publications Theme
   ========================================================================== */

/* ---- Section headings inside cards ---- */
.romail-checkout-wrapper h2,
.romail-checkout-wrapper .woocommerce-billing-fields > h3,
.romail-checkout-wrapper .woocommerce-shipping-fields > h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1ece5;
}

/* ---- Form Row Layout ---- */
.romail-checkout-wrapper .form-row {
  margin-bottom: 1.1rem;
}

.romail-checkout-wrapper .form-row label,
.romail-checkout-wrapper .woocommerce-form__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #78716c;
  margin-bottom: 0.35rem;
}

.romail-checkout-wrapper label .required,
.romail-checkout-wrapper label abbr[title="required"] {
  color: #914c00;
  text-decoration: none;
  margin-left: 2px;
}

/* ---- Inputs & Selects & Textarea ---- */
.romail-checkout-wrapper input[type="text"],
.romail-checkout-wrapper input[type="email"],
.romail-checkout-wrapper input[type="tel"],
.romail-checkout-wrapper input[type="number"],
.romail-checkout-wrapper input[type="password"],
.romail-checkout-wrapper select,
.romail-checkout-wrapper textarea {
  width: 100%;
  background-color: #faf8f5;
  border: 1px solid #ded5cb;
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  color: #1c1917;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.romail-checkout-wrapper input:focus,
.romail-checkout-wrapper select:focus,
.romail-checkout-wrapper textarea:focus {
  border-color: #914c00;
  box-shadow: 0 0 0 3px rgba(145, 76, 0, 0.1);
  background-color: #ffffff;
}

.romail-checkout-wrapper input.input-error,
.romail-checkout-wrapper input.woocommerce-invalid,
.romail-checkout-wrapper select.woocommerce-invalid {
  border-color: #ba1a1a;
  box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.08);
}

/* ---- Select custom arrow ---- */
.romail-checkout-wrapper select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23887364' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* ---- Textarea ---- */
.romail-checkout-wrapper textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

/* ---- Field validation messages ---- */
.romail-checkout-wrapper .woocommerce-error,
.romail-checkout-wrapper .form-row .woocommerce-invalid-text {
  font-size: 0.75rem;
  color: #ba1a1a;
  margin-top: 0.25rem;
}

/* ---- Half-width fields side by side ---- */
@media (min-width: 640px) {
  .romail-checkout-wrapper .woocommerce-billing-fields__field-wrapper,
  .romail-checkout-wrapper .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
  }

  /* Override legacy WooCommerce float-based layout inside our grid */
  .romail-checkout-wrapper .form-row-first,
  .romail-checkout-wrapper .form-row-last,
  .romail-checkout-wrapper .form-row-wide {
    float: none !important;
    width: 100% !important;
    grid-column: span 1;
  }

  .romail-checkout-wrapper .form-row-wide {
    grid-column: span 2;
  }

  /* Fields that should always be full width */
  .romail-checkout-wrapper #billing_address_1_field,
  .romail-checkout-wrapper #billing_address_2_field,
  .romail-checkout-wrapper #billing_email_field,
  .romail-checkout-wrapper #shipping_address_1_field,
  .romail-checkout-wrapper #shipping_address_2_field,
  .romail-checkout-wrapper #order_comments_field {
    grid-column: span 2;
  }
}

/* Neutralise the clearfix that WooCommerce adds after floated rows */
.romail-checkout-wrapper .form-row::after {
  content: none;
}

/* ---- Ship to different address toggle ---- */
.romail-checkout-wrapper .woocommerce-shipping-fields h3 label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #1c1917;
}

.romail-checkout-wrapper #ship-to-different-address-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #914c00;
  cursor: pointer;
}

/* ---- Create account checkbox ---- */
.romail-checkout-wrapper .create-account label,
.romail-checkout-wrapper .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.romail-checkout-wrapper input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #914c00;
  cursor: pointer;
}

/* ---- Payment Methods — selectable card design ---- */
.woocommerce-checkout-payment .wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Each method card */
.woocommerce-checkout-payment .romail-payment-card {
  border: 1.5px solid #ede7df;
  border-radius: 0.875rem;
  background: #ffffff;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.woocommerce-checkout-payment .romail-payment-card.is-selected,
.woocommerce-checkout-payment .romail-payment-card:has(.romail-payment-radio:checked) {
  border-color: #914c00;
  background-color: #fff8f3;
}

/* Hide native radio */
.woocommerce-checkout-payment .romail-payment-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* The full-width clickable label */
.woocommerce-checkout-payment .romail-payment-card-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  width: 100%;
}

/* Custom radio circle */
.romail-radio-indicator {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid #d4c5b8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  position: relative;
}

.romail-radio-indicator::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #914c00;
  opacity: 0;
  transition: opacity 0.15s;
}

.romail-payment-radio:checked ~ .romail-payment-card-label .romail-radio-indicator,
.romail-payment-card.is-selected .romail-radio-indicator {
  border-color: #914c00;
}

.romail-payment-radio:checked ~ .romail-payment-card-label .romail-radio-indicator::after,
.romail-payment-card.is-selected .romail-radio-indicator::after {
  opacity: 1;
}

/* Method text info block */
.romail-payment-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.romail-payment-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1c1917;
  line-height: 1.3;
}

.romail-payment-desc {
  font-size: 0.78rem;
  color: #78716c;
  line-height: 1.4;
}

/* Right side: badge + icon */
.romail-payment-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.romail-payment-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Extra gateway fields */
.woocommerce-checkout-payment .payment_box {
  padding: 0 1rem 0.9rem 3.1rem;
  font-size: 0.8125rem;
  color: #78716c;
  line-height: 1.5;
  background: transparent;
}

/* Images inside label */
.woocommerce-checkout-payment .romail-payment-card-label img {
  max-height: 20px;
  object-fit: contain;
}

/* ---- Place Order Button ---- */
#place_order {
  margin-top: 0;
}

/* ---- Terms & Conditions ---- */
.woocommerce-checkout-payment .woocommerce-terms-and-conditions-wrapper {
  font-size: 0.8rem;
  color: #78716c;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: center;
}

.woocommerce-checkout-payment .woocommerce-terms-and-conditions-wrapper a {
  color: #914c00;
  text-decoration: underline;
}

/* ---- Checkout notices ---- */
.romail-checkout-wrapper .woocommerce-NoticeGroup {
  margin-bottom: 1.5rem;
}

/* ---- Coupon form (woo default coupon on checkout) ---- */
.romail-checkout-wrapper .woocommerce-form-coupon-toggle {
  font-size: 0.875rem;
  color: #554336;
  margin-bottom: 1rem;
}

.romail-checkout-wrapper .woocommerce-form-coupon-toggle a {
  color: #914c00;
  font-weight: 600;
}

.romail-checkout-wrapper .checkout_coupon.woocommerce-form-coupon {
  background: #fff8f3;
  border: 1px solid #ede7df;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ---- Order Review Table (remove default table styling) ---- */
.woocommerce-checkout-review-order-table {
  display: none; /* hidden — we use our custom review-order.php layout */
}


/* ==========================================================================
   Location Picker Plugin — Detect Current Location Button
   ========================================================================== */

/* Section title above the button */
.romail-checkout-wrapper .woocommerce-billing-fields > p,
.romail-checkout-wrapper .woocommerce-shipping-fields > p {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 0.5rem;
}

/* "Detect Current Location" button — override bare plugin default */
.detect-my-location {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  background-color: #ffffff !important;
  color: #914c00 !important;
  border: 1.5px solid #914c00 !important;
  border-radius: 0.75rem !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-bottom: 0.6rem !important;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.detect-my-location::before {
  content: 'my_location';
  font-family: 'Material Symbols Outlined';
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  color: #914c00;
  line-height: 1;
}

.detect-my-location:hover {
  background-color: #fff8f3 !important;
  box-shadow: 0 2px 8px rgba(145, 76, 0, 0.15) !important;
}

/* Description text below the button */
.detect-my-location-description {
  display: block;
  font-size: 0.75rem !important;
  color: #78716c !important;
  line-height: 1.5 !important;
  margin-bottom: 0.85rem !important;
}

/* The location-picker plugin hard-codes a 350px map container before Google
   Maps has loaded. Keep that space collapsed until the plugin has rendered a
   real map, so a failed or missing map API does not leave an empty panel. */
.sg-checkout-location-picker-wrapper #sg_billing_map,
.sg-checkout-location-picker-wrapper #sg_shipping_map {
  height: 0 !important;
  overflow: hidden;
  opacity: 0;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.sg-checkout-location-picker-wrapper #sg_billing_map.romail-location-map-ready,
.sg-checkout-location-picker-wrapper #sg_shipping_map.romail-location-map-ready {
  height: 350px !important;
  opacity: 1;
}

/* The plugin keeps its hidden latitude/longitude fields in a paragraph with
   margins. Those margins should not remain when no map was created. */
.sg-checkout-location-picker-wrapper .sg-container:not(.romail-location-map-ready) p[for="latlong"] {
  display: none !important;
}

/* ==========================================================================
   Home & Catalog Pagination Numbers
   ========================================================================== */
#pagination-numbers .page-num-btn {
  font-size: 16px !important;
  font-weight: 600 !important;
}

#pagination-numbers .pagination-ellipsis {
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   Order Received & Order Details Page
   ========================================================================== */
.romail-order-received-wrap {
  margin-top: 0.5rem;
}

.romail-payment-instructions-card {
  margin: 0 0 1.5rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ede7df;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.romail-payment-instructions-header {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: #fffaf6;
  border-bottom: 1px solid #ede7df;
}

.romail-payment-instructions-icon {
  display: grid;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  color: #914c00;
  background: #fff;
  border: 1px solid #ead8c8;
  border-radius: 0.75rem;
  place-items: center;
}

.romail-payment-instructions-header h2 {
  margin: 0;
  color: #1c1917;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.romail-payment-instructions-header p {
  margin: 0.2rem 0 0;
  color: #57534e;
  font-size: 0.875rem;
  line-height: 1.55;
}

.romail-payment-instructions-content {
  padding: 1.25rem 1.5rem 1.5rem;
  color: #57534e;
  font-size: 0.875rem;
  line-height: 1.55;
}

.romail-payment-instructions-content > p {
  margin: 0 0 1rem;
}

/* WooCommerce outputs a section containing account headings and a field list.
   Keep the section linear; only the field list is a grid. */
.romail-payment-instructions-content .woocommerce-bacs-bank-details {
  display: block;
  margin: 0;
}

.romail-payment-instructions-content .wc-bacs-bank-details-heading {
  margin: 0 0 1rem;
  color: #1c1917;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.romail-payment-instructions-content .wc-bacs-bank-details-account-name {
  margin: 1.25rem 0 0.75rem;
  color: #5f3100;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

.romail-payment-instructions-content .wc-bacs-bank-details-account-name:first-of-type {
  margin-top: 0;
}

.romail-payment-instructions-content .wc-bacs-bank-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.romail-payment-instructions-content .wc-bacs-bank-details li {
  min-width: 0;
  padding: 0.875rem 1rem;
  color: #78716c;
  background: #fff;
  border: 1px solid #eadfd5;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.romail-payment-instructions-content .wc-bacs-bank-details li strong {
  display: block;
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
  color: #1c1917;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .romail-payment-instructions-header,
  .romail-payment-instructions-content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .romail-payment-instructions-content .wc-bacs-bank-details {
    grid-template-columns: 1fr;
  }
}

body.is-generating-pdf [data-html2canvas-ignore="true"] {
  display: none !important;
}

/* ==========================================================================
   Gutenberg / WordPress Block Content
   ========================================================================== */
/* Scoped to editorial content so the storefront and WooCommerce components
   retain their deliberately tailored layouts. */
.prose,
.entry-content,
.wp-block-post-content {
  --romail-paper: #fff8f3;
  --romail-ink: #1e1b17;
  --romail-muted: #554336;
  --romail-orange: #914c00;
  --romail-orange-bright: #ee861f;
  --romail-border: #dcc2b0;
  --romail-wash: #f4ede6;
}

.prose > *,
.entry-content > *,
.wp-block-post-content > * {
  width: min(100% - 2rem, 1140px);
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
}

.prose > .alignwide,
.entry-content > .alignwide,
.wp-block-post-content > .alignwide {
  width: min(100% - 2rem, 1360px);
  max-width: 1360px;
}

.prose > .alignfull,
.entry-content > .alignfull,
.wp-block-post-content > .alignfull {
  max-width: none;
  width: calc(100% + 3rem);
  margin-right: -1.5rem;
  margin-left: -1.5rem;
}

.prose :is(h1, h2, h3, h4, h5, h6),
.entry-content :is(h1, h2, h3, h4, h5, h6),
.wp-block-post-content :is(h1, h2, h3, h4, h5, h6) {
  color: var(--romail-ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prose h1.wp-block-heading, .entry-content h1.wp-block-heading, .wp-block-post-content h1.wp-block-heading { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-top: 2.75rem; margin-bottom: 1.25rem; }
.prose h2.wp-block-heading, .entry-content h2.wp-block-heading, .wp-block-post-content h2.wp-block-heading { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3.wp-block-heading, .entry-content h3.wp-block-heading, .wp-block-post-content h3.wp-block-heading { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h4.wp-block-heading, .entry-content h4.wp-block-heading, .wp-block-post-content h4.wp-block-heading { font-size: 1.25rem; margin-top: 1.75rem; margin-bottom: 0.75rem; }
.prose h5.wp-block-heading, .entry-content h5.wp-block-heading, .wp-block-post-content h5.wp-block-heading { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose h6.wp-block-heading, .entry-content h6.wp-block-heading, .wp-block-post-content h6.wp-block-heading { font-size: 0.95rem; margin-top: 1.5rem; margin-bottom: 0.5rem; letter-spacing: 0.04em; text-transform: uppercase; }
.prose :is(p, li), .entry-content :is(p, li), .wp-block-post-content :is(p, li) { color: var(--romail-muted); }
.prose a, .entry-content a, .wp-block-post-content a { color: var(--romail-orange); font-weight: 600; text-decoration-color: #ee861f; text-underline-offset: 0.18em; }
.prose a:hover, .entry-content a:hover, .wp-block-post-content a:hover { color: #6e3900; }

.prose .wp-block-quote,
.entry-content .wp-block-quote,
.wp-block-post-content .wp-block-quote {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--romail-orange-bright);
  background: var(--romail-wash);
  border-radius: 0 0.5rem 0.5rem 0;
}
.prose .wp-block-quote p, .entry-content .wp-block-quote p, .wp-block-post-content .wp-block-quote p { color: var(--romail-ink); font-family: 'Newsreader', Georgia, serif; font-size: 1.25rem; font-style: italic; }
.prose .wp-block-quote cite, .entry-content .wp-block-quote cite, .wp-block-post-content .wp-block-quote cite { color: var(--romail-muted); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.8rem; font-style: normal; font-weight: 700; }

.prose .wp-block-pullquote,
.entry-content .wp-block-pullquote,
.wp-block-post-content .wp-block-pullquote {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--romail-border);
  border-bottom: 1px solid var(--romail-border);
  color: var(--romail-ink);
}
.prose .wp-block-pullquote p, .entry-content .wp-block-pullquote p, .wp-block-post-content .wp-block-pullquote p { color: var(--romail-ink); font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; }

.prose .wp-block-button__link,
.entry-content .wp-block-button__link,
.wp-block-post-content .wp-block-button__link {
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: var(--romail-orange);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}
.prose .wp-block-button__link:hover, .entry-content .wp-block-button__link:hover, .wp-block-post-content .wp-block-button__link:hover { background: #6e3900; color: #fff; transform: translateY(-1px); }
.prose .is-style-outline .wp-block-button__link, .entry-content .is-style-outline .wp-block-button__link, .wp-block-post-content .is-style-outline .wp-block-button__link { background: transparent; border: 1px solid var(--romail-orange); color: var(--romail-orange); }

.prose :is(.wp-block-table table, .wp-block-calendar table),
.entry-content :is(.wp-block-table table, .wp-block-calendar table),
.wp-block-post-content :is(.wp-block-table table, .wp-block-calendar table) { width: 100%; border-collapse: collapse; border: 1px solid var(--romail-border); }
.prose :is(.wp-block-table th, .wp-block-table td, .wp-block-calendar th, .wp-block-calendar td),
.entry-content :is(.wp-block-table th, .wp-block-table td, .wp-block-calendar th, .wp-block-calendar td),
.wp-block-post-content :is(.wp-block-table th, .wp-block-table td, .wp-block-calendar th, .wp-block-calendar td) { padding: 0.75rem 1rem; border: 1px solid var(--romail-border); }
.prose .wp-block-table th, .entry-content .wp-block-table th, .wp-block-post-content .wp-block-table th { background: var(--romail-wash); color: var(--romail-ink); font-weight: 700; }

.prose .wp-block-code,
.prose .wp-block-preformatted,
.entry-content .wp-block-code,
.entry-content .wp-block-preformatted,
.wp-block-post-content .wp-block-code,
.wp-block-post-content .wp-block-preformatted { padding: 1rem 1.25rem; background: #2b2824; border-radius: 0.5rem; color: #fff8f3; overflow-x: auto; }
.prose .wp-block-separator, .entry-content .wp-block-separator, .wp-block-post-content .wp-block-separator { max-width: 9rem; margin-top: 2.5rem; margin-bottom: 2.5rem; border-color: var(--romail-border); }
.prose .wp-block-image img, .entry-content .wp-block-image img, .wp-block-post-content .wp-block-image img { border-radius: 0.5rem; }
.prose .wp-element-caption, .entry-content .wp-element-caption, .wp-block-post-content .wp-element-caption { margin-top: 0.5rem; color: var(--romail-muted); font-size: 0.8rem; text-align: center; }
.prose .wp-block-group.has-background, .entry-content .wp-block-group.has-background, .wp-block-post-content .wp-block-group.has-background { padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: 0.75rem; }
.prose .wp-block-media-text, .entry-content .wp-block-media-text, .wp-block-post-content .wp-block-media-text { gap: clamp(1.25rem, 4vw, 2.5rem); }
.prose .wp-block-media-text__content, .entry-content .wp-block-media-text__content, .wp-block-post-content .wp-block-media-text__content { padding: 0; }

@media (max-width: 782px) {
  .prose > .alignfull, .entry-content > .alignfull, .wp-block-post-content > .alignfull { width: calc(100% + 2rem); margin-right: -1rem; margin-left: -1rem; }
  .prose .wp-block-columns, .entry-content .wp-block-columns, .wp-block-post-content .wp-block-columns { gap: 1.25rem; }
}

/* Bookworm Gutenberg Blocks uses its own font-size utility classes. These
   selectors intentionally come after the general rules so old bwgb pages
   receive the same editorial treatment as native WordPress blocks. */
.prose .wp-block-bwgb-group .wp-block-heading,
.prose .wp-block-bwgb-column .wp-block-heading {
  color: var(--romail-ink) !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: clamp(2rem, 3vw, 2.5rem) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
}

.prose .wp-block-bwgb-group .wp-block-paragraph,
.prose .wp-block-bwgb-column .wp-block-paragraph {
  color: var(--romail-muted) !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: clamp(1rem, 1.35vw, 1.125rem) !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  margin-bottom: 1.75rem !important;
}

.prose .wp-block-bwgb-columns .wp-block-bwgb-column {
  min-width: 0;
}

.prose .wp-block-bwgb-group .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Keep the WordPress page title aligned with the content column supplied by
   Gutenberg, rather than the full-width Gutenberg canvas. */
.romail-gutenberg-page-title {
  width: min(100% - 2rem, 1140px);
  margin: 2.5rem auto 1.5rem;
}

/* Print Receipt Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  header, footer, nav,
  .romail-checkout-wrapper nav,
  button, .material-symbols-outlined,
  #modern-sans-typography,
  .w-full.bg-surface-container-lowest,
  [data-html2canvas-ignore="true"] {
    display: none !important;
  }

  .romail-order-received-wrap {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .bg-white, .bg-[#fcfaf8], .bg-[#fdfcfb] {
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
  }
}
