/* Gelince haber ver — vitrin modal */
.ws-sn-modal[hidden] {
  display: none !important;
}

.ws-sn-modal {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ws-sn-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}

.ws-sn-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26.5rem);
  max-height: min(92vh, 40rem);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 1.5rem 1.35rem 1.35rem;
}

.ws-sn-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: #344054;
  cursor: pointer;
}

.ws-sn-modal__close:hover {
  background: rgba(15, 23, 42, 0.1);
}

.ws-sn-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-right: 1.75rem;
  margin-bottom: 1.15rem;
}

.ws-sn-modal__icon {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 1.35rem;
}

.ws-sn-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111827;
  line-height: 1.3;
}

.ws-sn-modal__subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #667085;
}

.ws-sn-modal__product {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  font-size: 0.875rem;
  color: #344054;
  line-height: 1.4;
}

.ws-sn-modal__product[hidden] {
  display: none !important;
}

.ws-sn-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ws-sn-field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #344054;
}

.ws-sn-field__input {
  width: 100%;
  height: 2.85rem;
  padding: 0 0.9rem;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-sn-field__input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.ws-sn-field.is-invalid .ws-sn-field__input,
.ws-sn-field.is-invalid .ws-sn-phone {
  border-color: #f04438;
}

.ws-sn-field.is-invalid .ws-sn-field__input:focus,
.ws-sn-field.is-invalid .ws-sn-phone:focus-within {
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.ws-sn-field__error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #d92d20;
}

.ws-sn-field__error:not([hidden]) {
  display: block;
}

.ws-sn-phone {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  overflow: visible;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-sn-phone:focus-within {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.ws-sn-phone__dial {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  min-width: 5.25rem;
  padding: 0 0.55rem 0 0.7rem;
  border: 0;
  border-right: 1px solid #e4e7ec;
  border-radius: 10px 0 0 10px;
  background: #f8fafc;
  color: #111827;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
}

.ws-sn-phone__dial:hover {
  background: #f2f4f7;
}

.ws-sn-phone__flag {
  font-size: 1.05rem;
  line-height: 1;
}

.ws-sn-phone__code {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ws-sn-phone__caret {
  font-size: 0.85rem;
  color: #98a2b3;
}

.ws-sn-phone__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
  padding: 0 0.85rem;
  font-size: 0.9375rem;
  color: #111827;
  outline: none;
}

.ws-sn-phone__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 5;
  max-height: 15rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.ws-sn-phone__menu[hidden] {
  display: none !important;
}

.ws-sn-phone__menu-search {
  padding: 0.55rem;
  border-bottom: 1px solid #eef2f6;
}

.ws-sn-phone__search {
  width: 100%;
  height: 2.25rem;
  padding: 0 0.7rem;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 0.8125rem;
  outline: none;
}

.ws-sn-phone__menu-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  overflow: auto;
}

.ws-sn-phone__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: #111827;
  font-size: 0.8125rem;
}

.ws-sn-phone__option:hover,
.ws-sn-phone__option.is-active {
  background: #f2f4f7;
}

.ws-sn-phone__option-flag {
  flex: 0 0 auto;
  font-size: 1.05rem;
}

.ws-sn-phone__option-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-sn-phone__option-dial {
  flex: 0 0 auto;
  color: #667085;
  font-variant-numeric: tabular-nums;
}

.ws-sn-message {
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  color: #344054;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.ws-sn-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.ws-sn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ws-sn-btn--primary {
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
}

.ws-sn-btn--primary:hover {
  background: #1f2937;
}

.ws-sn-btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ws-sn-btn--ghost {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #111827;
}

.ws-sn-btn--ghost:hover {
  border-color: #98a2b3;
  background: #f8fafc;
}

.ws-sn-alert {
  display: none;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(240, 68, 56, 0.08);
  color: #d92d20;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.ws-sn-alert:not([hidden]) {
  display: block;
}

.ws-sn-alert.is-success {
  background: rgba(18, 183, 106, 0.1);
  color: #039855;
}

body.ws-sn-modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .ws-sn-modal__dialog {
    padding: 1.25rem 1rem 1.1rem;
  }

  .ws-sn-actions {
    grid-template-columns: 1fr;
  }
}
