/* Vitrin giriş / kayıt */
.ws-auth-page .ws-auth-submit {
  display: inline-block;
  width: 100%;
  border: 0;
  cursor: pointer;
  background-color: var(--ws-pro-primary, var(--black, #1f1f1f));
  color: var(--white, #fff);
  text-align: center;
}

.ws-auth-page .ws-auth-submit:hover {
  background-color: var(--ws-pro-secondary, var(--green, #d2ef9a));
  color: var(--black, #1f1f1f);
}

.ws-my-account-page .list-category button.category-item {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}

.ws-my-account-page .ws-is-hidden {
  display: none !important;
}

.ws-my-account-page [data-location-regions][hidden],
.ws-my-account-page [data-location-free][hidden],
.ws-my-account-page .ws-is-hidden {
  display: none !important;
}

.ws-my-account-page .ws-country-select {
  position: relative;
  width: 100%;
}

.ws-my-account-page .ws-country-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ws-my-account-page .ws-country-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--line, #e5e5e5);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ws-my-account-page .ws-country-select__trigger::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.75rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
  flex-shrink: 0;
}

.ws-my-account-page .ws-country-select.is-open .ws-country-select__trigger::after {
  transform: rotate(-135deg) translateY(-2px);
}

.ws-my-account-page .ws-country-select__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  border: 1px solid var(--line, #e5e5e5);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.ws-my-account-page .ws-country-select__option {
  padding: 0.55rem 1rem;
  cursor: pointer;
  line-height: 1.35;
}

.ws-my-account-page .ws-country-select__option:hover,
.ws-my-account-page .ws-country-select__option.is-selected {
  background: #f3f4f6;
}

.ws-my-account-page .ws-country-select__option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ws-my-account-page .ws-auth-submit {
  min-width: 160px;
}

.ws-address-list {
  display: grid;
  gap: 0.85rem;
}

.ws-address-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line, #e5e5e5);
  border-radius: 12px;
  background: #fff;
}

.ws-address-card.is-default {
  border-color: #111;
}

.ws-address-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ws-address-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
}

.ws-address-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.ws-address-action-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ws-address-add-btn {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  line-height: 1.2;
}

.ws-address-default-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Adres silme onay popup */
html.ws-confirm-modal-open {
  overflow: hidden;
}

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

.ws-confirm-modal.ws-is-hidden {
  display: none !important;
}

.ws-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.ws-confirm-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.ws-confirm-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line, #e5e5e5);
}

.ws-confirm-modal__title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.ws-confirm-modal__title i {
  color: #d97706;
  font-size: 1.35rem;
  line-height: 1;
}

.ws-confirm-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
}

.ws-confirm-modal__body {
  padding: 1.15rem 1.15rem 0.35rem;
}

.ws-confirm-modal__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: inherit;
}

.ws-confirm-modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1.15rem;
}

.ws-confirm-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.ws-confirm-modal__btn--ghost {
  background: #fff;
  border-color: var(--line, #e5e5e5);
  color: inherit;
}

.ws-confirm-modal__btn--ghost:hover {
  background: color-mix(in srgb, var(--line, #e5e5e5) 35%, #fff);
}

.ws-confirm-modal__btn--danger {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
}

.ws-confirm-modal__btn--danger:hover {
  background: #b71c1c;
  border-color: #b71c1c;
}

.ws-address-form .ws-addr-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ws-pro-primary, #1f1f1f) 8%, #fff);
  color: inherit;
  font-size: 0.8rem;
  line-height: 1.4;
}

.ws-address-form .ws-addr-hint i {
  color: var(--ws-pro-primary, #1f1f1f);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Telefon: bayrak + alan kodu (ödeme sayfası ile aynı mantık) */
.ws-account-phone {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--line, #e5e5e5);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.ws-account-phone:focus-within {
  border-color: #111;
}

.ws-account-phone__dial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-width: 4.75rem;
  padding: 0 0.65rem 0 0.75rem;
  border-right: 1px solid var(--line, #e5e5e5);
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

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

.ws-account-phone__code {
  font-variant-numeric: tabular-nums;
}

.ws-account-phone__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.75rem 0.9rem !important;
  margin: 0;
  background: transparent;
  font: inherit;
}

.ws-addr-edit-form .ws-account-phone {
  min-height: 2.75rem;
}

.ws-addr-edit-form .ws-account-phone__input {
  padding: 0.7rem 0.85rem !important;
}
