/*
  Theme Name: Hello Elementor Child
  Theme URI: https://example.com/
  Description: Child theme for Hello Elementor that includes a custom "order placed" popup on the checkout page before redirect.
  Author: You
  Version: 1.0.0
  Template: hello-elementor
  Text Domain: hello-elementor-child
*/

/* === Popup styles === */
.op-lock {
  overflow: hidden;
}
.order-placed-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.order-placed-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.order-placed-modal {
  width: min(92vw, 620px);
  background: #292828;
  color: #DCDCDC;
  border-radius: 32px;
  padding: 64px 34px;
  position: relative;
  z-index: 9999;
  font-family: "Raleway" !important;
  text-align: center;
  font-size: 18px;
}
.op-close {
  position: absolute;
  --iconPosition: 24px;
  left: var(--iconPosition);
  top: var(--iconPosition);
  cursor: pointer !important;
  padding: 0;
  background-color: transparent !important;
  border: none;
}
.op-close svg {
  display: block;
}
.op-icon {
  padding-bottom: 20px;
}
.op-icon svg {
    display: block;
    margin: 0 auto;
}
.op-title {
  font-size: 32px;
  line-height: 1.2;
  margin: 6px 0 8px;
  letter-spacing: .4px;
  font-weight: 500;
}
.op-sub {
  margin: 0 0 10px;
  font-weight: 500;
}
.op-delivery {
  margin: 0 0 18px;
  font-weight: 500;
}
.op-delivery strong {
  font-weight: 700;
}
.op-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #393838;
  border-radius: 8px;
  padding: 8px 15px 8px 24px;
  width: fit-content;
  margin: 0 auto 20px;
  font-size: 16px;
}
.op-num {
  font-weight: 700;
}
.op-copy {
  padding: 6px;
  cursor: pointer !important;
  border: none;
  background-color: transparent !important;
}
.op-copy svg {
  display: block;
}
.op-note {
  margin: 20px 0 0;
  font-size: 16px;
}

@media (max-width: 767px) {  
  .order-placed-modal {
    padding: 30px 15px 40px;
    border-radius: 16px;
    font-size: 16px;
  }
  .op-close {
    --iconPosition: 14px;
  }
  .op-icon svg {
    width: 60px;
    height: auto;
  }
  h2#op-title {
    font-size: 24px;
  }
  .op-copy svg {
    width: 20px;
    height: auto;
  }
  .op-order {
    padding: 8px 5px 6px 10px;
    font-size: 14px;
  }
}