.pm-vto {
  box-sizing: border-box;
  margin-top: 10px;
  width: 100%;
  --pm-vto-text: #17202a;
  --pm-vto-muted: #667085;
  --pm-vto-line: #d8dee8;
  --pm-vto-soft: #f6f8fb;
  --pm-vto-accent: #ffb300;
  --pm-vto-accent-dark: #202427;
  --pm-vto-accent-hover: #f2a900;
  --pm-vto-danger: #b42318;
  --pm-vto-whatsapp: #42b957;
}

.pm-vto *,
.pm-vto *::before,
.pm-vto *::after {
  box-sizing: border-box;
}

.pm-vto [hidden],
.pm-vto-modal [hidden],
.pm-vto-preview[hidden],
.pm-vto-result[hidden] {
  display: none !important;
}

.pm-vto-trigger {
  align-items: center;
  background: linear-gradient(135deg, var(--pm-vto-accent) 0%, #ffc84a 100%);
  border: 1px solid #e5a100;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(32, 36, 39, .13), inset 0 1px 0 rgba(255, 255, 255, .45);
  color: var(--pm-vto-accent-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  line-height: 1.2;
  margin: 10px 0 0;
  min-height: 44px;
  padding: 10px 16px;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
  width: 100%;
}

.pm-vto-trigger:hover,
.pm-vto-trigger:focus {
  background: linear-gradient(135deg, var(--pm-vto-accent-hover) 0%, #ffd066 100%);
  border-color: var(--pm-vto-accent-hover);
  color: var(--pm-vto-accent-dark);
  outline: none;
  box-shadow: 0 10px 22px rgba(32, 36, 39, .18), 0 0 0 3px rgba(255, 179, 0, .22);
  transform: translateY(-1px);
}

.pm-vto-trigger__icon {
  align-items: center;
  background: var(--pm-vto-accent-dark);
  border-radius: 7px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  width: 28px;
}

.pm-vto-trigger__text {
  white-space: nowrap;
}

.product-info .product-price-group .product-stats > .pm-vto,
.pm-vto.pm-vto--stats-slot {
  align-items: center;
  align-self: center;
  display: flex;
  flex: 0 0 184px;
  justify-content: flex-end;
  margin: 0 0 0 auto;
  max-width: 196px;
  min-width: 170px;
  order: 50;
  pointer-events: auto;
  width: auto;
}

.product-info .product-price-group .product-stats > ul {
  flex: 0 1 auto;
}

.product-info .product-price-group > .pm-vto.pm-vto--price-slot,
.pm-vto.pm-vto--price-slot {
  align-items: center;
  align-self: stretch;
  display: flex;
  flex: 0 0 184px;
  justify-content: flex-end;
  margin: 0 0 0 auto;
  max-width: 196px;
  min-width: 170px;
  order: 50;
  pointer-events: auto;
  width: auto;
}

.pm-vto.pm-vto--stats-slot .pm-vto-trigger,
.pm-vto.pm-vto--price-slot .pm-vto-trigger {
  border-radius: 10px;
  font-size: 12px;
  margin: 0;
  min-height: 52px;
  padding: 9px 13px;
  width: 100%;
}

.pm-vto.pm-vto--stats-slot .pm-vto-trigger__icon,
.pm-vto.pm-vto--price-slot .pm-vto-trigger__icon {
  height: 22px;
  width: 26px;
}

.pm-vto-modal[hidden] {
  display: none !important;
}

.pm-vto-modal {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2147483000;
}

.pm-vto-modal__backdrop {
  background: rgba(15, 23, 42, .55);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.pm-vto-modal__panel {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  color: var(--pm-vto-text);
  left: 50%;
  max-height: calc(100vh - 32px);
  max-width: min(560px, calc(100vw - 28px));
  overflow: auto;
  padding: 22px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 2;
}

.pm-vto-modal__close {
  align-items: center;
  background: var(--pm-vto-accent);
  border: 0;
  border-radius: 6px;
  color: var(--pm-vto-accent-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 25px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
}

.pm-vto-modal__close:hover,
.pm-vto-modal__close:focus {
  background: var(--pm-vto-accent-hover);
  outline: none;
}

.pm-vto-modal__header {
  margin: 0 42px 18px 0;
}

.pm-vto-modal__header h3 {
  color: var(--pm-vto-text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
}

.pm-vto-modal__header p {
  color: var(--pm-vto-muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.pm-vto-alert {
  background: #fff4f2;
  border: 1px solid #fecdca;
  border-radius: 7px;
  color: var(--pm-vto-danger);
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 14px;
  padding: 10px 12px;
}

.pm-vto-form {
  display: grid;
  gap: 14px;
}

.pm-vto-dropzone {
  align-items: center;
  background: var(--pm-vto-soft);
  border: 1px dashed #b78900;
  border-radius: 8px;
  color: var(--pm-vto-text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 168px;
  padding: 20px;
  text-align: center;
  transition: background .18s ease, border-color .18s ease;
}

.pm-vto-dropzone:hover,
.pm-vto-dropzone:focus-within {
  background: #fff8e1;
  border-color: var(--pm-vto-accent);
}

.pm-vto-file {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.pm-vto-dropzone__icon {
  border: 2px solid var(--pm-vto-accent-dark);
  border-radius: 50%;
  display: block;
  height: 42px;
  position: relative;
  width: 42px;
}

.pm-vto-dropzone__icon::before,
.pm-vto-dropzone__icon::after {
  background: var(--pm-vto-accent-dark);
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.pm-vto-dropzone__icon::before {
  height: 18px;
  width: 2px;
}

.pm-vto-dropzone__icon::after {
  height: 2px;
  width: 18px;
}

.pm-vto-dropzone__title {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.pm-vto-dropzone__meta {
  color: var(--pm-vto-muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.pm-vto-preview {
  align-items: center;
  border: 1px solid var(--pm-vto-line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 10px;
}

.pm-vto-preview__image {
  background: #f2f4f7;
  border-radius: 6px;
  display: block;
  height: 76px;
  object-fit: cover;
  width: 76px;
}

.pm-vto-preview__change {
  background: #ffffff;
  border: 1px solid var(--pm-vto-line);
  border-radius: 7px;
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 12px;
}

.pm-vto-kvkk {
  align-items: flex-start;
  color: #344054;
  display: flex;
  font-size: 12px;
  gap: 9px;
  line-height: 1.45;
}

.pm-vto-kvkk input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.pm-vto-submit,
.pm-vto-action {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
  transition: filter .18s ease, transform .18s ease;
}

.pm-vto-submit {
  background: var(--pm-vto-accent);
  color: var(--pm-vto-accent-dark);
  width: 100%;
}

.pm-vto-submit:hover,
.pm-vto-submit:focus,
.pm-vto-action:hover,
.pm-vto-action:focus {
  filter: brightness(.96);
  outline: none;
  transform: translateY(-1px);
  text-decoration: none;
}

.pm-vto-submit:disabled {
  cursor: wait;
  opacity: .74;
  transform: none;
}

.pm-vto-submit__loading,
.pm-vto.is-loading .pm-vto-submit__idle,
.pm-vto-modal.is-loading .pm-vto-submit__idle {
  display: none;
}

.pm-vto.is-loading .pm-vto-submit__loading,
.pm-vto-modal.is-loading .pm-vto-submit__loading {
  display: inline;
}

.pm-vto-result {
  display: grid;
  gap: 13px;
}

.pm-vto-result__image-wrap {
  background: #f2f4f7;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.pm-vto-result__image {
  display: block;
  height: auto;
  max-height: min(58vh, 620px);
  object-fit: contain;
  width: 100%;
}

.pm-vto-result__note {
  color: var(--pm-vto-muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

.pm-vto-actions {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-vto-action--cart {
  background: var(--pm-vto-accent-dark);
  color: #ffffff;
}

.pm-vto-action--whatsapp {
  background: var(--pm-vto-whatsapp);
  color: #ffffff !important;
}

.pm-vto-action--retry,
.pm-vto-action--download {
  background: #eef2f7;
  color: #1f2937;
}

body.pm-vto-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .product-info .product-price-group {
    flex-wrap: wrap;
  }

  .product-info .product-price-group .product-stats {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .product-info .product-price-group .product-stats > .pm-vto,
  .pm-vto.pm-vto--stats-slot,
  .product-info .product-price-group > .pm-vto.pm-vto--price-slot,
  .pm-vto.pm-vto--price-slot {
    flex: 1 0 100%;
    margin: 10px 0 0;
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .pm-vto.pm-vto--stats-slot .pm-vto-trigger,
  .pm-vto.pm-vto--price-slot .pm-vto-trigger {
    min-height: 44px;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .pm-vto {
    margin-top: 8px;
  }

  .pm-vto-modal__panel {
    border-radius: 8px 8px 0 0;
    bottom: 0;
    left: 0;
    max-height: calc(100vh - 18px);
    max-width: none;
    padding: 20px 16px 18px;
    right: 0;
    top: auto;
    transform: none;
    width: 100%;
  }

  .pm-vto-modal__header h3 {
    font-size: 20px;
  }

  .pm-vto-actions {
    grid-template-columns: 1fr;
  }
}
