.w2i-popdsgn-trigger {
  cursor: pointer;
}

.elementor-widget-w2i_popup_designer .w2i-popdsgn-trigger {
  display: block;
  width: 100%;
}

body:not(.elementor-editor-active):not(.elementor-editor-preview) .w2i-popdsgn-trigger,
body:not(.elementor-editor-active):not(.elementor-editor-preview) .w2i-popdsgn-trigger * {
  cursor: pointer;
}

.elementor-widget-w2i_popup_designer .w2i-popdsgn-trigger-slot > .e-con,
.elementor-widget-w2i_popup_designer .w2i-popdsgn-trigger > .e-con {
  width: 100%;
}

body.w2i-popdsgn-open {
  overflow: hidden;
}

#w2i-popdsgn {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: #fff;
}

/* Above the designer's full-page boot overlay (z-index 1000002 on body). */
#w2i-popdsgn.is-open {
  z-index: 2147483000;
}

/* Background load must not cover the page or eat clicks (color swatches, etc.). */
body:not(.w2i-popdsgn-open) > #w2i-boot-loader,
body:not(.w2i-popdsgn-open) > div.w2i-spinner,
body:not(.w2i-popdsgn-open) > div.spinner,
body:not(.w2i-popdsgn-open) > .messagebox {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep a real viewport size for the designer's breakpoint check, but stay off the page. */
#w2i-popdsgn:not(.is-open),
#w2i-popdsgn[hidden] {
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
  transform: translate3d(-120vw, 0, 0) !important;
  clip-path: inset(100%) !important;
}

#w2i-popdsgn.is-open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2147483646 !important;
}

#w2i-popdsgn:not(.is-open),
#w2i-popdsgn:not(.is-open) * {
  pointer-events: none !important;
}

#w2i-popdsgn .w2i-popdsgn-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: auto;
  background: #fff;
}

#w2i-popdsgn .w2i-popdsgn-stage #web2ink {
  min-height: 100%;
}

#w2i-popdsgn > .w2i-popdsgn-x {
  display: none !important;
}

#w2i-popdsgn #web2inkdesigner .w2i-canvas-rail > #w2i-popdsgn-close {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  box-sizing: border-box;
  width: 36px;
  min-width: 36px;
  height: 36px;
  margin: 0 0 0 8px;
  padding: 0 !important;
  border: 0;
  border-radius: 8px;
  background: #dc3545 !important;
  color: #fff !important;
  z-index: 3;
  pointer-events: auto !important;
}

#web2inkdesigner.w2i-large .w2i-canvas-rail > #w2i-popdsgn-close,
#web2inkdesigner.w2i-medium .w2i-canvas-rail > #w2i-popdsgn-close,
#web2inkdesigner.w2i-small .w2i-canvas-rail > #w2i-popdsgn-close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 !important;
}

#w2i-popdsgn-close[hidden] {
  display: none !important;
}

#w2i-popdsgn .w2i-popdsgn-qty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 5;
  pointer-events: auto;
  background: rgba(22, 50, 92, 0.45);
  font-family: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1c2433;
}

#w2i-popdsgn .w2i-popdsgn-qty[hidden] {
  display: none !important;
}

#w2i-popdsgn .w2i-popdsgn-dialog {
  position: relative;
  display: block;
  width: min(860px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17, 62, 121, 0.22);
}

#w2i-popdsgn .w2i-popdsgn-qty-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px 16px;
}

#w2i-popdsgn .w2i-popdsgn-qty-x {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  box-sizing: border-box;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 4px;
  background: transparent !important;
  color: #16325c !important;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

#w2i-popdsgn .w2i-popdsgn-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#w2i-popdsgn .w2i-popdsgn-preview {
  flex: 0 0 132px;
  width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 132px;
  background: #f4f7fb;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  padding: 8px;
}

#w2i-popdsgn .w2i-popdsgn-preview img.w2i-popdsgn-shot {
  width: 100%;
  max-width: 116px;
  max-height: 116px;
  object-fit: contain;
}

#w2i-popdsgn .w2i-popdsgn-sides {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

#w2i-popdsgn .w2i-popdsgn-sides button {
  width: 36px;
  height: 36px;
  padding: 3px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

#w2i-popdsgn .w2i-popdsgn-sides button.is-selected {
  border-color: #0081d9;
  box-shadow: 0 0 0 1px #0081d9;
}

#w2i-popdsgn .w2i-popdsgn-sides img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#w2i-popdsgn .w2i-popdsgn-sizes {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 28px;
}

#w2i-popdsgn .w2i-popdsgn-sizes-title {
  margin: 2px 0 10px;
  color: #113e79;
  font-family: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
  text-transform: none;
}

#w2i-popdsgn .w2i-popdsgn-size-scroll {
  width: 100%;
  overflow-x: auto;
}

#w2i-popdsgn .w2i-popdsgn-qty-table {
  width: 100%;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  margin: 0;
}

#w2i-popdsgn .w2i-popdsgn-qty-table th,
#w2i-popdsgn .w2i-popdsgn-qty-table td {
  box-sizing: border-box;
  padding: 7px 8px;
  border: 0;
  border-right: 1px solid #d0d5dd;
  border-bottom: 1px solid #d0d5dd;
  color: #243350;
  text-align: center;
  white-space: nowrap;
  font-weight: 500;
}

#w2i-popdsgn .w2i-popdsgn-qty-table tr:first-child > * {
  border-top: 1px solid #d0d5dd;
  background: #f1f2f4;
  font-weight: 600;
}

#w2i-popdsgn .w2i-popdsgn-qty-table tr > :first-child {
  border-left: 1px solid #d0d5dd;
  background: #f8f9fb;
  text-align: left;
  font-weight: 600;
}

#w2i-popdsgn .w2i-popdsgn-qty-table.is-matrix {
  table-layout: fixed;
}

#w2i-popdsgn .w2i-popdsgn-qty-table.is-matrix tr > :first-child {
  width: 4.6em;
}

#w2i-popdsgn .w2i-popdsgn-qty-table.is-matrix tr:nth-child(2) > :not(:first-child) {
  position: relative;
  height: 36px;
  padding: 0;
  background: #fff;
}

#w2i-popdsgn .w2i-popdsgn-qty-table tr:first-child > :first-child {
  border-top-left-radius: 6px;
}

#w2i-popdsgn .w2i-popdsgn-qty-table tr:first-child > :last-child {
  border-top-right-radius: 6px;
}

#w2i-popdsgn .w2i-popdsgn-qty-table tr:last-child > :first-child {
  border-bottom-left-radius: 6px;
}

#w2i-popdsgn .w2i-popdsgn-qty-table tr:last-child > :last-child {
  border-bottom-right-radius: 6px;
}

#w2i-popdsgn .w2i-popdsgn-qty-table.is-team tr:first-child > * {
  background: #f1f2f4;
}

#w2i-popdsgn .w2i-popdsgn-qty-table.is-team td {
  background: #fff;
  text-align: left;
}

#w2i-popdsgn .w2i-popdsgn-sizes input[type="number"],
#w2i-popdsgn .w2i-popdsgn-sizes select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: #243350;
  font-family: inherit;
  font-size: 14px;
  text-align: center;
}

#w2i-popdsgn .w2i-popdsgn-qty-table.is-matrix td input,
#w2i-popdsgn .w2i-popdsgn-qty-table.is-matrix td select {
  position: absolute;
  inset: 0;
}

#w2i-popdsgn .w2i-popdsgn-msg {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

#w2i-popdsgn .w2i-popdsgn-sizes-title .w2i-popdsgn-min {
  color: #a6a9ad;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

#w2i-popdsgn .w2i-popdsgn-msg {
  color: #b42318;
}

#w2i-popdsgn .w2i-popdsgn-order-total {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  column-gap: 10px;
  row-gap: 2px;
  margin: 10px 0 0;
  color: #243350;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

#w2i-popdsgn .w2i-popdsgn-order-lines {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

#w2i-popdsgn .w2i-popdsgn-order-lines li {
  display: contents;
  font-size: 13px;
  font-weight: 500;
}

#w2i-popdsgn .w2i-popdsgn-order-line-price,
#w2i-popdsgn .w2i-popdsgn-order-line-price .woocommerce-Price-amount,
#w2i-popdsgn .w2i-popdsgn-order-line-price .woocommerce-Price-amount bdi,
#w2i-popdsgn .w2i-popdsgn-order-line-price .woocommerce-Price-currencySymbol {
  color: #243350;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

#w2i-popdsgn .w2i-popdsgn-order-total-row {
  display: contents;
  color: #113e79;
  font-size: 13px;
  font-weight: 700;
}

#w2i-popdsgn .w2i-popdsgn-order-total-row > span {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #d7e3f0;
}

#w2i-popdsgn .w2i-popdsgn-price-spin {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #d7e3f0;
  border-top-color: #113e79;
  border-radius: 50%;
  vertical-align: -1px;
  animation: w2i-popdsgn-spin 0.7s linear infinite;
}

#w2i-popdsgn .w2i-popdsgn-order-total[hidden] {
  display: none;
}

#w2i-popdsgn .w2i-popdsgn-order-total-value,
#w2i-popdsgn .w2i-popdsgn-order-total-value .woocommerce-Price-amount,
#w2i-popdsgn .w2i-popdsgn-order-total-value .woocommerce-Price-amount bdi,
#w2i-popdsgn .w2i-popdsgn-order-total-value .woocommerce-Price-currencySymbol {
  color: #113e79;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

#w2i-popdsgn .w2i-popdsgn-actions {
  display: flex;
  margin-top: 14px;
}

#w2i-popdsgn button[data-popdsgn="cart"],
#w2i-popdsgn button[data-popdsgn="cart"]:hover,
#w2i-popdsgn button[data-popdsgn="cart"]:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  background: #0081d9;
  box-shadow: none;
  color: #fff;
  font-family: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

#w2i-popdsgn button[data-popdsgn="cart"]:hover:not(:disabled) {
  background: #006fbd;
}

#w2i-popdsgn button[data-popdsgn="cart"]:disabled {
  background: #9ec3de;
  color: #fff;
  cursor: not-allowed;
}

#w2i-popdsgn .w2i-popdsgn-cart-spin {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: w2i-popdsgn-spin 0.7s linear infinite;
}

#w2i-popdsgn button[data-popdsgn="cart"].is-busy,
#w2i-popdsgn button[data-popdsgn="cart"].is-busy:disabled {
  background: #0081d9;
  cursor: wait;
}

#w2i-popdsgn button[data-popdsgn="cart"].is-busy .w2i-popdsgn-cart-label {
  display: none;
}

#w2i-popdsgn button[data-popdsgn="cart"].is-busy .w2i-popdsgn-cart-spin {
  display: block;
}

@keyframes w2i-popdsgn-spin {
  to { transform: rotate(360deg); }
}

#w2i-popdsgn .w2i-popdsgn-status {
  margin: 0;
  color: #64748b;
}

.w2i-popdsgn-size-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.w2i-popdsgn-size-table {
  width: 100%;
  border-collapse: collapse;
}

.w2i-popdsgn-size-table th,
.w2i-popdsgn-size-table td {
  border: 1px solid #d0d5dd;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}

.w2i-popdsgn-size-table th {
  font-weight: 600;
  background: #f8fafc;
}

.w2i-popdsgn-size-table input[type="number"] {
  width: 4.5em;
  max-width: 100%;
  text-align: center;
}

.w2i-popdsgn-trigger .w2i-popdsgn-size-table,
.w2i-popdsgn-trigger .w2i-popdsgn-size-table * {
  cursor: auto;
}

@media (max-width: 720px) {
  #w2i-popdsgn .w2i-popdsgn-qty-body {
    flex-direction: column;
    align-items: stretch;
  }
  #w2i-popdsgn .w2i-popdsgn-preview {
    flex-basis: auto;
    width: 120px;
    min-height: 120px;
    align-self: flex-start;
  }
}
