/**
 * IGCIG My Account layout + $10 welcome coupon (floating gift, modal, ticket).
 * Loaded after account.css on account pages; alone elsewhere (gift only).
 */

/* ==========================================================================
 * Logged-out: Login | Register columns (WooCommerce default look, as IGCIG)
 * ========================================================================== */

body.woocommerce-account:not(.logged-in) .cd-prose {
  width: min(100% - 32px, 1000px);
  max-width: none;
  margin: 32px auto 72px;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
  max-width: none;
  margin: 0 0 16px;
  padding: 0;
}

.igcig-account {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
  align-items: start;
  text-align: left;
}

.igcig-account--single {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

.igcig-account .igcig-account__col {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}

.igcig-account .igcig-account__title {
  margin: 0 0 22px;
  color: #333;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.igcig-account__box {
  box-sizing: border-box;
  padding: 20px 18px 22px;
  border: 1px solid #d3ced2;
  border-radius: 5px;
  background: #fff;
}

.igcig-account .igcig-account__form {
  margin: 0;
  padding: 0;
  border: 0;
}

.igcig-account .igcig-account__row {
  margin: 0 0 14px;
  padding: 0;
}

.igcig-account .igcig-account__row > label:not(.igcig-account__check) {
  display: block;
  margin: 0 0 5px;
  color: #333;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.igcig-account .required {
  color: #a00;
  font-weight: 700;
  border: 0;
  text-decoration: none;
}

.igcig-account .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.igcig-account input.igcig-account__input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(32, 7, 7, 0.8);
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
}

.igcig-account input.igcig-account__input:focus {
  border-color: #720eec;
  box-shadow: 0 0 0 1px #720eec;
}

.igcig-account__password {
  position: relative;
  display: block;
}

.igcig-account__password input.igcig-account__input {
  padding-right: 42px;
}

.igcig-account__password .password-input {
  display: block;
}

.igcig-account__password .show-password-input {
  display: none !important;
}

.igcig-account__password .view-icon {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.igcig-account__password .view-icon svg {
  width: 22px;
  height: 22px;
}

.igcig-account__password .view-icon .icon-show,
.igcig-account__password .view-icon.show .icon-hide {
  display: none;
}

.igcig-account__password .view-icon .icon-hide,
.igcig-account__password .view-icon.show .icon-show {
  display: block;
}

.igcig-account__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.igcig-account .igcig-account__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.igcig-account .igcig-account__check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #515151;
}

.igcig-account .igcig-account__btn {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 20px;
  border: 0;
  border-radius: 3px;
  background: #e9e6ed;
  color: #515151;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.igcig-account .igcig-account__btn:hover,
.igcig-account .igcig-account__btn:focus-visible {
  background: #dcd7e2;
  color: #515151;
}

.igcig-account .igcig-account__row--submit {
  margin-bottom: 18px;
}

.igcig-account .igcig-account__lost {
  margin: 0;
  font-size: 15px;
}

.igcig-account .igcig-account__lost a,
.igcig-account .igcig-account__extra a {
  color: #1a0dab;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.igcig-account .igcig-account__note,
.igcig-account .igcig-account__extra p {
  margin: 0 0 14px;
  color: #333;
  font-size: 15px;
  line-height: 1.55;
}

.igcig-account .igcig-account__tip {
  display: block;
  margin: 6px 0 0;
  padding: 0;
}

.igcig-account .cd-account-form-msg {
  margin: 0 0 12px;
}

@media (max-width: 767px) {
  body.woocommerce-account:not(.logged-in) .cd-prose {
    margin-top: 20px;
  }

  .igcig-account {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .igcig-account .igcig-account__title {
    margin-bottom: 14px;
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .igcig-account__pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* "Sign Me Up" landing banner above the forms */
.igcig-welcome-claim {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px dashed #f15a22;
  border-radius: 6px;
  background: #fff6ef;
  color: #333;
  font-size: 15px;
  line-height: 1.45;
}

.igcig-welcome-claim__amount {
  flex: 0 0 auto;
  color: #f15a22;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.igcig-welcome-claim__text strong {
  display: block;
  color: #1d2b4f;
}

/* ==========================================================================
 * Logged-in shell (IGCIG / WooCommerce default buttons)
 * ========================================================================== */

.igcig-account-panel .woocommerce-MyAccount-content .woocommerce-button,
.igcig-account-panel .woocommerce-MyAccount-content a.button,
.igcig-account-panel .woocommerce-MyAccount-content button.button,
.igcig-account-panel .woocommerce-MyAccount-content .button {
  border-color: #e9e6ed;
  border-radius: 3px;
  background: #e9e6ed;
  color: #515151 !important;
  font-weight: 700;
}

.igcig-account-panel .woocommerce-MyAccount-content .woocommerce-button:hover,
.igcig-account-panel .woocommerce-MyAccount-content a.button:hover,
.igcig-account-panel .woocommerce-MyAccount-content button.button:hover,
.igcig-account-panel .woocommerce-MyAccount-content .button:hover {
  background: #dcd7e2;
  color: #515151 !important;
  opacity: 1;
}

.igcig-account-panel .cd-account-nav__list,
.igcig-account-panel .woocommerce-MyAccount-navigation ul,
.igcig-account-panel .cd-account-panel__content,
.igcig-account-panel .woocommerce-MyAccount-content {
  border-color: #d3ced2;
  border-radius: 5px;
}

/* Dashboard coupon card */
.igcig-welcome-card {
  display: flex;
  gap: 18px;
  align-items: stretch;
  margin: 22px 0 0;
  border: 2px dashed #f15a22;
  border-radius: 8px;
  background: #fff8f2;
  overflow: hidden;
}

.igcig-welcome-card__amount {
  display: flex;
  flex: 0 0 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f15a22;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.igcig-welcome-card__amount span {
  font-size: 44px;
}

.igcig-welcome-card__amount small {
  margin-top: 4px;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.igcig-welcome-card__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 18px 18px 0;
}

.igcig-welcome-card .igcig-welcome-card__title {
  margin: 0 0 6px;
  color: #1d2b4f;
  font-size: 18px;
  font-weight: 700;
}

.igcig-welcome-card__text {
  margin: 0 0 10px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.woocommerce-MyAccount-content a.igcig-welcome-card__cta,
.igcig-welcome-card__cta {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 4px;
  background: #006837;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.igcig-welcome-card__cta:hover {
  background: #00522b;
}

@media (max-width: 560px) {
  .igcig-welcome-card {
    flex-direction: column;
    gap: 0;
  }

  .igcig-welcome-card__amount {
    flex-basis: auto;
    flex-direction: row;
    gap: 8px;
    padding: 12px;
  }

  .igcig-welcome-card__amount small {
    margin: 0;
  }

  .igcig-welcome-card__body {
    padding: 14px 16px 16px;
  }
}

/* ==========================================================================
 * Coupon code box (modal + dashboard)
 * ========================================================================== */

.igcig-welcome-code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 14px;
  padding: 10px 12px;
  border: 1px dashed #c9c2cf;
  border-radius: 4px;
  background: #fff;
  font-size: 15px;
}

.igcig-welcome-code__label {
  color: #666;
  font-weight: 600;
}

.igcig-welcome-code__value {
  flex: 1 1 auto;
  color: #c92a2a;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.igcig-welcome-code__copy {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 0;
  border-radius: 3px;
  background: #1d2b4f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
 * Floating gift button (bottom-left, gentle bob, red "1" badge)
 * ========================================================================== */

.igcig-welcome-gift {
  position: fixed;
  left: 20px;
  bottom: 30px;
  z-index: 9990;
  animation: igcig-welcome-bob 2.5s ease-in-out infinite;
}

@keyframes igcig-welcome-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.igcig-welcome-gift__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50% !important;
  background: #cfaaf7;
  box-shadow: -6px 6px 10px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.igcig-welcome-gift__btn:hover {
  box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.45);
}

.igcig-welcome-gift__btn:focus-visible {
  outline: 3px solid #006837;
  outline-offset: 3px;
}

.igcig-welcome-gift__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.igcig-welcome-gift__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff3333;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.igcig-welcome.is-dismissed .igcig-welcome-gift__badge {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .igcig-welcome-gift {
    animation: none;
  }
}

@media (max-width: 768px) {
  .igcig-welcome-gift {
    left: 15px;
    bottom: 20px;
  }

  .igcig-welcome-gift__btn {
    width: 55px;
    height: 55px;
  }

  body.single-product .igcig-welcome-gift {
    bottom: 96px;
  }
}

/* ==========================================================================
 * Modal
 * ========================================================================== */

html.igcig-welcome-open,
html.igcig-welcome-open body {
  overflow: hidden;
}

.igcig-welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.igcig-welcome-modal[hidden] {
  display: none !important;
}

.igcig-welcome-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.igcig-welcome-modal__inner {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 800px;
  max-height: calc(100vh - 30px);
  border-radius: 10px;
  background: #fff;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.igcig-welcome-modal__x {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.igcig-welcome-modal__art {
  display: flex;
  flex: 0 0 44%;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #fff;
}

.igcig-welcome-modal__content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 44px 35px 40px;
  color: #333;
  text-align: center;
}

.igcig-welcome-modal .igcig-welcome-modal__title {
  margin: 0 0 10px;
  color: #333;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.igcig-welcome-modal__text {
  margin: 0 0 6px;
  color: #666;
  font-size: 17px;
  line-height: 1.4;
}

.igcig-welcome-modal__terms {
  margin: 0 0 10px;
  color: #4a4a4a;
  font-size: 13px;
  line-height: 1.45;
}

.igcig-welcome-modal__cta,
.igcig-welcome-modal__dismiss {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
}

.igcig-welcome-modal__cta {
  margin-top: 10px;
  background: #006837;
  color: #fff !important;
  font-size: 20px;
  font-weight: 500;
}

.igcig-welcome-modal__cta:hover,
.igcig-welcome-modal__cta:focus-visible {
  background: #00522b;
}

.igcig-welcome-modal__dismiss {
  margin-top: 10px;
  background: #eee;
  color: #555;
  font-size: 18px;
  font-weight: 400;
}

.igcig-welcome-modal__dismiss:hover {
  background: #e2e2e2;
}

@media (max-width: 768px) {
  .igcig-welcome-modal__inner {
    flex-direction: column;
    max-width: 420px;
  }

  .igcig-welcome-modal__art {
    flex-basis: auto;
    padding: 12px 12px 0;
  }

  .igcig-welcome-modal__content {
    padding: 18px 20px 22px;
  }

  .igcig-welcome-modal .igcig-welcome-modal__title {
    font-size: 30px;
  }

  .igcig-welcome-modal__text {
    font-size: 15px;
  }

  .igcig-welcome-modal__cta {
    padding: 14px;
    font-size: 18px;
  }

  .igcig-welcome-modal__dismiss {
    padding: 13px;
    font-size: 16px;
  }
}

/* ==========================================================================
 * CSS ticket: WELCOME / NEW CUSTOMER / $10 / OFF / YOUR FIRST ORDER
 * All sizes in em so the ticket scales with its font-size.
 * ========================================================================== */

.igcig-ticket {
  --igcig-orange: #f15a22;
  --igcig-navy: #1d2b4f;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 21.5em;
  font-size: 16px;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  border: 0.32em solid var(--igcig-orange);
  border-radius: 0.9em;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0) 60%),
    repeating-conic-gradient(from 0deg at 50% 42%, #fff6ec 0deg 7deg, #fde9d8 7deg 14deg);
  overflow: hidden;
  user-select: none;
}

.igcig-ticket__notch {
  position: absolute;
  z-index: 2;
  width: 1.3em;
  height: 1.3em;
  border: 0.32em solid var(--igcig-orange);
  border-radius: 50%;
  background: #fff;
}

.igcig-ticket__notch--top {
  top: -0.95em;
  left: 50%;
  transform: translateX(-50%);
}

.igcig-ticket__notch--l {
  top: 44%;
  left: -0.95em;
}

.igcig-ticket__notch--r {
  top: 44%;
  right: -0.95em;
}

.igcig-ticket__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.35em 1em 1.1em;
  text-align: center;
}

.igcig-ticket__welcome {
  position: relative;
  color: var(--igcig-navy);
  font-size: 1.45em;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
}

.igcig-ticket__welcome::before,
.igcig-ticket__welcome::after {
  content: "";
  position: absolute;
  top: 55%;
  width: 1.6em;
  height: 0.1em;
  border-radius: 1em;
  background: var(--igcig-orange);
}

.igcig-ticket__welcome::before {
  right: calc(100% + 0.45em);
  transform: rotate(-8deg);
}

.igcig-ticket__welcome::after {
  left: calc(100% + 0.3em);
  transform: rotate(8deg);
}

.igcig-ticket__star {
  margin: 0.15em 0 0.2em;
  color: var(--igcig-orange);
  font-size: 0.75em;
  line-height: 1;
}

.igcig-ticket__ribbon {
  position: relative;
  padding: 0.28em 1.3em 0.3em;
  background: var(--igcig-orange);
  color: #fff;
  font-size: 1.12em;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
}

.igcig-ticket__amount {
  margin: 0.02em 0 -0.02em;
  color: var(--igcig-orange);
  font-size: 6.2em;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-shadow: 0.035em 0.035em 0 #fff, 0.06em 0.06em 0 rgba(29, 43, 79, 0.12);
}

.igcig-ticket__off {
  position: relative;
  color: var(--igcig-navy);
  font-size: 3.4em;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.igcig-ticket__off::before,
.igcig-ticket__off::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.34em;
  height: 0.05em;
  border-radius: 1em;
  background: var(--igcig-orange);
  box-shadow: -0.03em -0.16em 0 var(--igcig-orange), -0.03em 0.16em 0 var(--igcig-orange);
}

.igcig-ticket__off::before {
  right: calc(100% + 0.18em);
}

.igcig-ticket__off::after {
  left: calc(100% + 0.18em);
  transform: scaleX(-1);
}

.igcig-ticket__banner {
  margin-top: 0.55em;
  padding: 0.42em 1.4em;
  background: var(--igcig-navy);
  color: #fff;
  font-size: 1em;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
}

.igcig-ticket__stub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0.95em 0.6em 1em;
  border-top: 0.22em dotted #fff;
  background: var(--igcig-orange);
  box-shadow: inset 0 0.22em 0 var(--igcig-orange);
  color: #fff;
  text-align: center;
}

.igcig-ticket__new {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 0.08em solid rgba(255, 255, 255, 0.65);
  line-height: 1;
}

.igcig-ticket__new b {
  font-size: 2.3em;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.igcig-ticket__new i {
  margin-top: 0.05em;
  color: #ffe0a6;
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: 1.6em;
  font-style: italic;
  font-weight: 400;
}

.igcig-ticket__excl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  line-height: 1;
}

.igcig-ticket__excl b {
  padding: 0.25em 0;
  border-top: 0.12em dotted rgba(255, 255, 255, 0.8);
  border-bottom: 0.12em dotted rgba(255, 255, 255, 0.8);
  font-size: 1.05em;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.igcig-ticket__excl svg {
  width: 2.4em;
  height: auto;
}

@media (max-width: 768px) {
  .igcig-ticket {
    font-size: 11px;
    max-width: 30em;
  }

  .igcig-ticket__amount {
    font-size: 5.2em;
  }
}

@media (max-width: 380px) {
  .igcig-ticket {
    font-size: 9.5px;
  }
}
