.auth-modal .modal-dialog,
.otp-verification-modal .modal-dialog {
  max-width: 420px;
  width: calc(100% - 24px);
}

.raya-coupon-modal .modal-dialog {
  max-width: 450px;
}

.auth-modal .modal-content,
.otp-verification-modal .modal-content {
  border-radius: 14px;
}

.auth-input {
  height: 52px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  background-color: #f9fbff;
}

.auth-modal .tf-field.style-1 .tf-field-label {
  font-weight: 500;
  pointer-events: none;
}

.otp-input-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 24px;
}

.otp-digit-input {
  width: 40px;
  height: 50px;
  padding: 0px 16px !important;
  border: 1px solid #d8deea;
  border-radius: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #111827;
  background-color: #f9fbff;
}

.otp-digit-input::selection {
  background-color: rgba(53, 99, 233, 0.2);
}

.tf-page-title.style_developer {
  padding: 30px 0 35px !important;
}

.buy-now-and-wishlist-button-holder a:hover {
  background-color: #000;
  color: #fff;
}

.buy-now-and-wishlist-button-holder a:hover {
  background-color: #000 !important;
  color: #fff !important;
}

.tf-product-btn-wishlist:hover .icon,
.tf-product-btn-wishlist:hover i {
  color: #fff !important;
}

@media (max-width: 767px) {
  .header-raya.header-modified {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  .inner-page-header .logo-header img,
  .header-raya .logo-header img {
    width: auto;
    height: 40px;
  }

  .inner-page-header .header-modified {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  .footer-logo img {
    width: auto;
    height: 50px;
  }

  .tf-page-title.style_developer {
    padding: 20px 0 25px !important;
  }
}

.order-confirmed-left-part h2 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  line-height: 140%;
  margin-bottom: 35px;
}

.order-confirmed-left-part h6 {
  font-size: 16px;
  font-weight: 200;
  margin-bottom: 10px;
}

.order-confirmed-left-part h4 {
  font-size: 21px;
  font-weight: normal;
  margin-bottom: 30px;
}

.each-address-box h3 {
  font-size: 21px;
  font-weight: normal;
  line-height: normal;
  margin-bottom: 10px;
}

.each-address-box h5 {
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 10px;
}

.each-address-box p {
  font-size: 16px;
  line-height: 26px;
  font-weight: 200;
  margin-bottom: 10px;
}

.order-confirmed-right-part {
  padding: 0px 52px 70px;
}

.top-image-left {
  position: absolute;
  top: 0px;
  right: 100%;
  width: 53px;
  z-index: -1;
}

.top-image-right {
  position: absolute;
  top: 0px;
  left: 100%;
  z-index: -1;
  width: 53px;
}

.bottom-image {
  position: absolute;
  bottom: -50px;
  left: 0px;
  width: 100%;
  z-index: -1;
}

.order-confirmed-content-part {
  background-color: #f5efe6;
  padding: 80px 50px 0px;
}

/* Cart item */
.cart-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  border-top: 1px solid #e0e0db;
}

.cart-item-bolder .cart-item:last-child {
  border-bottom: 1px solid #e0e0db;
}

.cart-item img {
  width: 100px;
  height: auto;
}

.item-details {
  flex: 1;
  font-size: 16px;
  color: #000;
  font-weight: 200;
  padding-top: 10px;
}

.price {
  font-size: 16px;
  color: #000;
  font-weight: 200;
}

.summary .row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin: 20px 0;
  font-weight: 200;
}

.total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: bold;
  border-top: 1px solid #e0e0db;
  padding-top: 20px;
}

@media (max-width: 1599px) {
  .order-confirmed-left-part h2 {
    font-size: 30px;
    margin-bottom: 25px;
  }

  .order-confirmed-left-part h6 {
    font-size: 14px;
  }

  .order-confirmed-left-part h4 {
    font-size: 18px;
  }

  .each-address-box h3 {
    font-size: 18px;
  }

  .each-address-box h5 {
    font-size: 14px;
  }

  .each-address-box p {
    font-size: 14px;
  }

  .order-confirmed-right-part {
    padding: 0px 33px 70px;
  }

  .order-confirmed-content-part {
    padding: 65px 20px;
  }

  .cart-item {
    padding: 10px;
  }
}

@media (max-width: 1299px) {
  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item .price {
    width: 100%;
  }

  .order-confirmed-right-part {
    padding: 50px 30px 70px;
  }
}

/* address */
.checkout_address_item {
  display: block;
  cursor: pointer;
}

.checkout_address_item.active {
  border: 1px solid #c69634;
}

.checkout_address_item.active .address_checked {
  font-size: 11px;
  font-weight: 600;
  position: absolute;
  top: 0;
  right: 0;
  color: #fff;
  width: 20px;
  height: 20px;
  background: #c69634;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* my orders pagination */
.account-order .wg-pagination {
  justify-content: center;
}

.account-order .wg-pagination .active .pagination-item {
  background-color: #c69634;
  border-color: #c69634;
  color: #fff;
}

/* my address css*/
.my_address_btn_padding {
  padding: 8px 16px;
}

/* my order css*/
.my_order_btn_padding {
  padding: 8px 18px;
}

.track-order-scroll-area {
  max-height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

/* optional scrollbar styling */
.track-order-scroll-area::-webkit-scrollbar {
  width: 5px;
}

.track-order-scroll-area::-webkit-scrollbar-thumb {
  background: #e6e2e2;
  border-radius: 10px;
}

.track-order-scroll-area::-webkit-scrollbar-track {
  background: #f3f3f3;
}

@media (max-width: 767px) {
  .track-order-scroll-area {
    max-height: 260px;
  }
}

/* icon css for i-common*/
.icon-refresh:before {
  content: "↻";
  font-family: initial !important;
}

.icon-cancel:before {
  content: "✖";
  font-family: initial !important;
}

/* order item status pill */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  margin-top: 8px;
}

.status-badge-canceled {
  background: #fadfa8;
  color: #956e1f;
  border-color: #f5d9c7;
}

.status-badge-placed {
  background: #ecfdf3;
  color: #027a48;
  border-color: #c7efd9;
}

.status-badge-delivered {
  background: #17b272;
  color: #ecfdf3;
  border-color: #cfe1ff;
}

.status-badge-default {
  background: #f3f4f6;
  color: #344054;
  border-color: #e4e7ec;
}

/*product related css*/
.original_price {
  text-decoration: line-through;
  color: #8f8f8f;
}

/* quick view modal css*/
/* quick view wishlist button */

.quickview-wishlist-btn {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s ease;
}

/* hover e black border */
.quickview-wishlist-btn:hover {
  border-color: #111;
}

.quickview-wishlist-btn .icon {
  font-size: 18px;
  color: #111 !important;
  position: absolute;
  transition: opacity 0.2s ease;
  line-height: 1;
}

/* default state */
.quickview-wishlist-btn .qv-heart-solid {
  opacity: 0;
}

.quickview-wishlist-btn .qv-heart-outline {
  opacity: 1;
}

/* FALSE hover => filled heart */
.quickview-wishlist-btn:not(.is-wishlisted):hover .qv-heart-solid {
  opacity: 1;
}

.quickview-wishlist-btn:not(.is-wishlisted):hover .qv-heart-outline {
  opacity: 0;
}

/* TRUE normal => filled heart */
.quickview-wishlist-btn.is-wishlisted .qv-heart-solid {
  opacity: 1;
}

.quickview-wishlist-btn.is-wishlisted .qv-heart-outline {
  opacity: 0;
}

/* TRUE hover => outline heart */
.quickview-wishlist-btn.is-wishlisted:hover .qv-heart-solid {
  opacity: 0;
}

.quickview-wishlist-btn.is-wishlisted:hover .qv-heart-outline {
  opacity: 1;
}

/* cart amount section */
.estimated_shipping_btn_padding {
  padding: 9px 18px !important;
  min-width: fit-content !important;
}

.tf-page-cart-checkout .raya-cart-page-amount-row h3 {
  font-size: 16px;
  font-weight: 400;
}

.tf-page-cart-checkout .raya-cart-page-amount-row .total-value {
  font-size: 16px;
  font-weight: 500;
}

.tf-page-cart-checkout .raya-cart-page-amount-discount {
  color: #0e8f45;
}

.tf-page-cart-checkout .raya-cart-page-amount-total {
  border-top: 1px solid #e5e7eb;
  margin-top: 10px;
  padding-top: 12px;
}

.tf-page-cart-checkout .raya-cart-page-amount-total h3 {
  font-size: 20px;
  font-weight: 500;
}

.tf-page-cart-checkout .raya-cart-page-amount-total .total-value {
  font-size: 20px;
  font-weight: 500;
}

.tf-page-cart-checkout .raya-cart-page-amount-saving {
  color: #0e8f45;
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
}

.tf-page-cart-checkout .raya-cart-page-amount-apply-coupon {
  border: 0;
  background: transparent;
  color: #c69634;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .wd-form-order .order-head.order-item-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start !important;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .wd-form-order .order-head.order-item-row .img-product {
    width: 72px;
    height: 96px;
    grid-row: span 2;
  }

  .wd-form-order .order-head.order-item-row .content {
    min-width: 0;
  }

  .wd-form-order .order-head.order-item-row .order-item-actions {
    grid-column: 1 / -1;
    margin-left: 0 !important;
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }

  .wd-form-order .order-head.order-item-row .order-item-actions .tf-btn {
    width: 100%;
    margin-top: 0 !important;
    padding: 8px 8px;
    min-height: 40px;
    font-size: 12px;
    line-height: 1.2;
  }

  .wd-form-order .order-head.order-item-row .order-item-actions .tf-btn span {
    white-space: normal;
  }

  .cart-total.price {
    white-space: nowrap;
  }
}

.checkout-checkbox,
.checkout-radio {
  border: 1px solid #7d7d7d;
}

/* =========================================================
   Product name - uppercase only the first letter
   (Sentence case: "banarasi satin silk saree" -> "Banarasi satin silk saree")
   ========================================================= */

/* Product listing card, Wishlist card, Mini cart, Home feature product,
   Product list table - all of these use the same "title link" class */
.title.link {
  display: inline-block;
  /* required for ::first-letter to work,
                             skip this line if the theme already sets block/inline-block */
}

/* .title.link::first-letter {
  text-transform: uppercase;
} */

.title.link {
  text-transform: capitalize;
}

/* Product Details page - product info title (h5) */
.tf-product-info-title h5::first-letter {
  text-transform: uppercase;
}

/* Product Details page - product name inside breadcrumb */
.tf-breadcrumb-list span.text::first-letter {
  text-transform: uppercase;
}

/* Track Order modal - IN TRANSIT scan history (nested mini timeline) */

/* Fix: default .timeline::before uses a fixed bottom offset (48px) tuned for
   the main/outer timeline. That leaves a long dangling dashed tail below the
   last item in our shorter nested scan list. Instead of one continuous line
   for the whole list, draw the dashed connector per-item (li to next li),
   so it naturally stops right after the last item - no matter how many
   scan entries there are. */
.widget-timeline .timeline.timeline-nested::before {
  content: none;
}

.widget-timeline .timeline.timeline-nested>li {
  position: relative;
}

.widget-timeline .timeline.timeline-nested>li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: -15px;
  left: 10px;
  width: 2px;
  border-right: 1px dashed var(--text-2);
}

/* "View Scan Details" collapse toggle */
.scan-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 0;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.scan-toggle-chevron {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid var(--primary);
  border-bottom: 1.5px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.25s ease, margin-top 0.25s ease;
}

.scan-toggle-btn:not(.collapsed) .scan-toggle-chevron {
  transform: rotate(225deg);
  margin-top: 3px;
}

/* Payment method badge (My Order Details page) */
.payment-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
}

.payment-method-badge .icon {
  font-size: 13px;
}

.payment-method-badge-cod {
  background: #fff7e6;
  color: #a15c00;
  border-color: #ffe1b3;
}

.payment-method-badge-prepaid {
  background: #ecfdf3;
  color: #027a48;
  border-color: #c7efd9;
}

/* Return Order modal - COD refund method fields (Bank/UPI) */
.refund-details-fields {
  margin-top: 16px;
}

.refund-details-fields .box-field {
  margin-bottom: 15px;
}

.refund-details-fields .box-field:last-child {
  margin-bottom: 0;
}

/* Return Order modal - make the Bank/UPI radio look like checkout's nice
   circular radio, instead of the default square .tf-check style.
   (Checkout page's version only works inside .widget-wrap-checkout,
   this modal doesn't have that wrapper, so we re-scope the same rules here) */
.refund-method-radio-group .fieldset-radio {
  display: flex;
  align-items: center;
  gap: 8px;
}

.refund-method-radio-group .fieldset-radio label {
  margin-top: 10px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

.refund-method-radio-group input {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.refund-method-radio-group input:checked~label {
  color: var(--main);
  font-weight: 600;
}

/* Additional Information block (static, no accordion) */
.tf-additional-info-block {
  border: 1px solid #e0e0db;
  border-radius: 5px;
  margin-bottom: 24px;
}

.tf-additional-info-title {
  background-color: #f5f5f5;
  font-size: 18px;
  font-weight: 600;
  line-height: 30px;
  color: var(--main);
  padding: 14px 10px;
  border-radius: 5px 5px 0 0;
}

.tf-additional-info-block .tf-pr-attrs {
  border-radius: 0 0 5px 5px;
  box-shadow: none !important;
}

/* ════ ▶ CHECKOUT ORDER SUMMARY ITEM — TOP-ALIGNED ROW LAYOUT ════ */
.raya-checkout-order-item {
  align-items: flex-start !important;
}

.raya-checkout-order-item .content {
  align-items: flex-start !important;
}

.raya-checkout-order-item .content .info {
  max-width: 320px;
}

.raya-checkout-order-item .content .info .name {
  margin-bottom: 4px !important;
  line-height: 1.4 !important;
  text-transform: capitalize !important;
}

.raya-checkout-order-item .content .price-wrap {
  padding-top: 2px !important;
  white-space: nowrap !important;
}

/* ── Mobile-specific width ── */
@media only screen and (max-width: 480px) {
  .raya-checkout-order-item .content .info {
    max-width: 180px;
  }
}

/* ── Cart Empty State ──────────────────────────────── */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.cart-empty-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.cart-empty-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(176, 141, 106, 0.15));
}

.cart-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.cart-empty-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
  line-height: 1.5;
}

.cart-empty-btn {
  padding: 12px 32px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .raya-checkout-billing-col {
    align-self: start;
    position: sticky;
    position: -webkit-sticky;
    top: 90px;
  }
}

/* ── Checkout — remove cart item button ── */
.raya-checkout-remove-btn {
  display: block;
  margin-top: 2px;
  flex-shrink: 0;
  align-self: center;
  font-size: 12px;
  color: #999;
  transition: color 0.2s ease;
}

.raya-checkout-remove-btn:hover {
  color: #d92d20;
}

.raya-checkout-remove-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.tf-minicart-recommendations-item-infos .title {
  text-transform: capitalize !important;
}

.cart-info .cart-title {
  text-transform: capitalize !important;
}

.content .title {
  text-transform: capitalize !important;
}

.product-title>a {
  text-transform: capitalize !important;
}

.item-details .title {
  text-transform: capitalize !important;
}

/* Hide number input spin buttons (up/down arrows) inside auth modals.
   These appear by default on type="number" inputs and look out of place
   in a phone number field — users don't need to increment/decrement. */
.auth-modal input[type="number"]::-webkit-inner-spin-button,
.auth-modal input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox also shows a spin button — this removes it there too */
.auth-modal input[type="number"] {
  -moz-appearance: textfield;
}

/* Address form — highlight empty required fields on submit.
   Scoped tightly to checkout address panel so it doesn't
   bleed into other forms that also use .form-checkout. */
.checkout-address-panel .form-checkout .border-error {
  border-color: #ffc9c9 !important;
}