/**
 *
 *      Global OClass Styling
 *
 */

html,
body {
  font-family: var(--ocw-font-family), sans-serif !important;
}

.ocw-div * {
  font-family: var(--ocw-font-family), sans-serif !important;
}

.fa-classic,
.fa-regular,
.fa-solid,
.far,
.fas,
.fa {
  font-family: "Font Awesome 6 Free" !important;
}

.ocw-div h1 {
  font-size: var(--ocw-p1-size);
  color: black;
  font-weight: 600;
}

.ocw-div h2 {
  font-size: var(--ocw-p2-size);
  color: black;
  font-weight: 600;
}

.ocw-div h3 {
  font-size: var(--ocw-p3-size);
  color: black;
  font-weight: 600;
}

.ocw-div h4 {
  font-size: var(--ocw-p4-size);
  color: black;
  font-weight: 600;
}

.ocw-div h5 {
  font-size: var(--ocw-p5-size);
  color: black;
  font-weight: 600;
}

.ocw-div h6 {
  font-size: var(--ocw-p6-size);
  color: black;
  font-weight: 600;
}

.ocw-row {
  display: flex;
  column-gap: 20px;
}

.ocw-justify-content-center {
  justify-content: center;
}

.ocw-justify-content-start {
  justify-content: flex-start;
}

.ocw-justify-content-end {
  justify-content: flex-end;
}

.ocw-justify-content-between {
  justify-content: space-between;
}

.ocw-align-items-center {
  align-items: center;
}

.ocw-col {
  width: 100%;
}

.ocw-col-5 {
  width: 5%;
}

.ocw-col-10 {
  width: 10%;
}

.ocw-col-15 {
  width: 15%;
}

.ocw-col-20 {
  width: 20%;
}

.ocw-col-25 {
  width: 25%;
}

.ocw-col-30 {
  width: 30%;
}

.ocw-col-40 {
  width: 40%;
}

.ocw-col-50 {
  width: 50%;
}

.ocw-col-55 {
  width: 55%;
}

.ocw-col-60 {
  width: 60%;
}

.ocw-col-70 {
  width: 70%;
}

.ocw-col-75 {
  width: 65%;
}

.ocw-col-80 {
  width: 80%;
}

.ocw-col-90 {
  width: 90%;
}

.ocw-col-100 {
  width: 100%;
}

.col-gap-5 {
  column-gap: 5px;
}

.col-gap-10 {
  column-gap: 10px;
}

.col-gap-15 {
  column-gap: 15px;
}

.col-gap-20 {
  column-gap: 20px;
}

.col-gap-30 {
  column-gap: 30px;
}

.col-gap-40 {
  column-gap: 40px;
}

.col-gap-50 {
  column-gap: 50px;
}

.ocw-div p {
  color: #434343;
  margin-bottom: 10px;
}

.ocw-div a {
  color: black;
  text-decoration: none !important;
}

.ocw-desktop {
  display: block;
}

.ocw-mobile {
  display: none;
}

.ocw-hide {
  display: none;
}

.ocw-show {
  display: block;
}

/**
 *
 *      Global Form Styling
 *
 */

.success-message {
  color: rgb(30, 70, 32);
  padding: 6px 10px;
  text-align: center;
  background: #edf7ed;
  display: none;
  font-size: 14px;
}

p.error-message {
  color: #fa896b;
  padding: 6px 10px;
  text-align: center;
  background: #fdeded;
  display: none;
  font-size: 14px;
}

p.info-message {
  color: #da6d00;
  padding: 6px 10px;
  text-align: center;
  background: #fae8cc;
  font-size: 14px;
}

.no-results {
  padding: 6px 10px;
  text-align: center;
  font-size: 14px;
  width: 100%;
  background: #f7f7f7;
}

.ocw-login-container {
  max-width: 400px;
  margin: auto;
}

.ocw-input-group {
  margin-bottom: 20px;
  position: relative;
}

.ocw-password-group {
  position: relative;
}

.ocw-div label {
  margin-bottom: 10px;
  color: #7a7a7a;
  display: block;
  font-size: 14px;
  line-height: 20px;
}

.ocw-input-group input[type="email"],
.ocw-input-group input[type="text"],
.ocw-input-group input[type="date"],
.ocw-input-group input[type="tel"],
.ocw-input-group input[type="password"],
.ocw-input-group textarea {
  padding: 10px 15px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: black;
}

.ocw-input[type="email"],
.ocw-input[type="text"],
.ocw-input[type="date"],
.ocw-input[type="tel"],
.ocw-input[type="password"],
.ocw-textarea {
  padding: 10px 15px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: black;
}

.ocw-input-group input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  background: white;
  color: black;
  text-align: left;
}

.ocw-input-group select,
.ocw-select {
  -webkit-appearance: none;
  appearance: none;
  padding: 10px 15px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  color: black;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23555' viewBox='0 0 320 512'><path d='M143 352l-137-136c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L160 286.1l120.1-120.1c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-137 136c-9.4 9.4-24.6 9.4-33.9 0z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  background-size: 0.8em;
}

.ocw-input-group select:focus {
  outline: none;
}

input:-webkit-autofill {
  background-color: white !important;
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
}

.ocw-toggle-password {
  position: absolute;
  top: 38px;
  right: 10px;
  cursor: pointer;
  user-select: none;
}

.ocw-toggle-password i {
  font-size: 14px;
  color: black;
}

.full-width {
  width: 100% !important;
}

.email-suggestions {
  border: 1px solid #ccc;
  overflow-y: auto;
  background: #fff;
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0;
  position: absolute;
  width: 100%;
  z-index: 1000;
  font-size: 12px;
  border-radius: 4px;
}

.email-suggestions li {
  padding: 8px 12px;
  cursor: pointer;
}

.email-suggestions li:hover {
  background: #f0f0f0;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

button.ocw-submit {
  display: block !important;
  padding: 8px 15px;
  border: none;
  background: var(--ocw-cta-bg-color) !important;
  color: var(--ocw-cta-color) !important;
}

button.ocw-submit:hover,
button.ocw-submit:focus {
  background: var(--ocw-cta-bg-color) !important;
  color: var(--ocw-cta-color) !important;
}

button.ocw-submit:disabled {
  opacity: 0.6;
}

.ocw-toggle {
  display: none;
}
.ocw-toggle-label {
  display: block;
  width: 45px;
  height: 24px;
  background-color: #ccc;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 0px !important;
}
.ocw-toggle-label::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}
.ocw-toggle:checked + .ocw-toggle-label {
  background-color: var(--ocw-cta-bg-color);
}
.ocw-toggle:checked + .ocw-toggle-label::after {
  transform: translateX(20px);
}

/**
 *
 *      OCW Loader
 *
 */

.ocw-loader-div {
  text-align: center;
  display: none;
  width: 100%;
}

.ocw-loader {
  color: #7a5d55;
}

.ocw-loader,
.ocw-loader div {
  box-sizing: border-box;
}

.ocw-loader {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 13px;
}

.ocw-loader div {
  position: absolute;
  top: 2px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: black;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.ocw-loader div:nth-child(1) {
  left: 8px;
  animation: ocw-loader1 0.6s infinite;
}

.ocw-loader div:nth-child(2) {
  left: 8px;
  animation: ocw-loader2 0.6s infinite;
}

.ocw-loader div:nth-child(3) {
  left: 32px;
  animation: ocw-loader2 0.6s infinite;
}

.ocw-loader div:nth-child(4) {
  left: 56px;
  animation: ocw-loader3 0.6s infinite;
}

.ocw-circle-loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #000000;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  animation: spin 2s linear infinite;
}

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

@keyframes ocw-loader1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ocw-loader3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes ocw-loader2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/**
 *
 *      OCW Popup
 *
 */

.ocw-popup,
.ocw-alert-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.ocw-popup .ocw-popup-content,
.ocw-alert-popup .ocw-alert-popup-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%) !important;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.ocw-popup img {
  margin: 20px 0;
  max-width: 180px !important;
}

.ocw-popup .ocw-close-button {
  position: absolute;
  right: 10px;
  top: 0px;
  cursor: pointer;
  font-size: 30px;
}

.ocw-popup-text {
  font-size: 12px;
  padding-bottom: 10px;
  margin: 0px !important;
  color: black;
}

.ocw-alert-popup-bold-text {
  font-size: 13px;
  padding-bottom: 22px;
  margin: 0px !important;
  color: black;
  font-weight: 600;
}

.ocw-popup-btn1,
.ocw-popup-btn1:hover,
.ocw-alert-popup-btn1,
.ocw-alert-popup-btn1:hover {
  background: #f4f4f4;
  color: black !important;
  font-size: 14px !important;
  padding: 10px 20px;
  border-radius: 100px;
  margin: 5px;
  text-decoration: none !important;
  cursor: pointer;
}

.ocw-popup-btn2,
.ocw-popup-btn2:hover,
.ocw-alert-popup-btn2,
.ocw-alert-popup-btn2:hover {
  background: var(--ocw-cta-bg-color) !important;
  color: var(--ocw-cta-color) !important;
  font-size: 14px !important;
  padding: 10px 20px;
  border-radius: 100px;
  margin: 5px;
  text-decoration: none !important;
  cursor: pointer;
}

.ocw-popup button,
.ocw-alert-popup button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#waitlist-confirmation-popup.oc_popup .popup-content {
  text-align: left;
  font-size: 13px !important;
}

#waitlist-confirmation-popup.oc_popup .popup-text {
  font-size: 13px;
}

#toaster {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  display: none;
  z-index: 1000;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 767px) {
  .ocw-desktop {
    display: none;
  }

  .ocw-mobile {
    display: block;
  }

  #toaster {
    font-size: 11px;
    padding: 7px 10px;
  }

  .ocw-popup .ocw-popup-content {
    width: 96%;
  }

  .ocw-popup img {
    margin: 20px 0;
    max-width: 120px !important;
  }
  .ocw-alert-popup .ocw-alert-popup-content {
    width: 96%;
  }

  .ocw-col-50 {
    width: 100%;
  }
}

/**
 * Cart Success Popup Controller Design
 */

.ocw-success-popup {
  text-align: center;
}

.ocw-success-popup-text {
  font-size: 12px;
  padding-bottom: 10px;
  margin: 0px !important;
}

.ocw-success-popup-buttons {
  justify-content: center;
}

.ocw-success-popup-buy-button,
.ocw-success-popup-buy-button:hover {
  background: #f4f4f4;
  color: black !important;
  font-size: 14px !important;
  padding: 10px 20px;
  border-radius: 100px;
  margin: 5px;
  text-decoration: none !important;
  cursor: pointer;
}

.ocw-success-popup-cart-button,
.ocw-success-popup-cart-button:hover {
  background: var(--ocw-cta-bg-color) !important;
  color: var(--ocw-cta-color) !important;
  font-size: 14px !important;
  padding: 10px 20px;
  border-radius: 100px;
  margin: 5px;
  text-decoration: none !important;
  cursor: pointer;
}

/**
 * Alert Controller Design
 */

.ocw-alert-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ocw-font-family), sans-serif !important;
}
.ocw-alert-backdrop .ocw-alert-content {
  background: white;
  min-width: 250px;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  font-size: 13px;
  position: relative;
}
.ocw-alert-backdrop .ocw-alert-content h4 {
  font-size: 16px;
}
.ocw-alert-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.ocw-alert-buttons button.confirm {
  background: var(--ocw-cta-bg-color) !important;
  color: var(--ocw-cta-color) !important;
  font-size: 14px !important;
  padding: 10px 20px;
  border-radius: 100px;
  margin: 5px;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
}
.ocw-alert-buttons button.cancel {
  background: #f4f4f4;
  color: black !important;
  font-size: 14px !important;
  padding: 10px 20px;
  border-radius: 100px;
  margin: 5px;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
}

/**
 * Modal Controller Design 
*/

/* === Base modal container === */
.ocw-modal {
  display: none; /* Hidden by default */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.45);
}

/* Overlay (clickable area to close) */
.ocw-modal-overlay {
  position: absolute;
  inset: 0;
}

/* Modal content box */
.ocw-modal-content {
  position: relative;
  background: #fff;
  border-radius: 2px;
  max-width: 600px;
  margin: 5% auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: ocwModalFadeIn 0.25s ease;
  overflow: hidden;
}

/* === Header === */
.ocw-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 13px 20px;
  border-bottom: 1px solid #e5e2e2;
}

.ocw-modal-no-header {
  display: flex;
  justify-content: flex-end;
  background: #fff;
  padding: 6px 20px;
  padding-bottom: 0px;
}

.ocw-modal-no-header-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.ocw-modal-header.no-border {
  border: none !important;
}

.ocw-modal-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.ocw-modal-close {
  font-size: 1.6em;
  color: #5069b1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ocw-modal-close:hover {
  opacity: 0.8;
}

/* === Body === */
.ocw-modal-body {
  padding: 20px;
  border: none;
  max-height: calc(100vh - 150px); /* adjust based on header height */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* Optional fade-in animation */
@keyframes ocwModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive for Mobile === */
@media (max-width: 600px) {
  .ocw-modal-content {
    margin: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .ocw-modal-body {
    max-height: calc(100vh - 60px); /* adjust based on header height */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  }
}

.tippy-box[data-theme~="light"] .tippy-content {
  max-height: 400px; /* set your desired height */
  overflow-y: auto; /* adds scroll if content is taller */
}

/**
 *
 *      OCW Loading
 *
 */

#ocw-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9999999;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .ocw-cart-container {
    font-size: 13px;
  }

  .ocw-cart-table {
    font-size: 13px;
  }

  .ocw-cart-table tr th:first-child,
  .ocw-cart-table tr td:first-child {
    width: 50%;
  }

  .ocw-cart-table th,
  .ocw-cart-table td {
    padding: 8px;
  }

  .ocw-cart-total-div {
    max-width: 100%;
    width: 100%;
  }

  .ocw-proceed-to-checkout {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .ocw-cart-table tr th:first-child,
  .ocw-cart-table tr td:first-child {
    width: 30%;
  }

  .ocw-cart-table th,
  .ocw-cart-table td {
    padding: 6px;
  }

  .total-credit-notes {
    justify-content: flex-start !important;
  }

  .ocw-cart-total tr td:first-child {
    text-align: left;
    padding-left: 4px;
  }

  .ocw-cart-total tr td:last-child {
    padding-right: 4px;
  }

  .ocw-checkout-div {
    display: block;
  }

  .ocw-checkout-div button {
    width: 100%;
  }

  .ocw-checkout-div button:last-child {
    margin-top: 10px;
  }
}
