.p-device-frame__mobile-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.p-device-frame__switcher {
  display: none;
  gap: 8px;
}

.p-device-frame__switch-btn,
.p-option-preview-lang__switch-btn {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.p-device-frame__switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  font-size: 12.5px;
}

.p-device-frame__switch-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.p-device-frame__switch-btn.is-active,
.p-option-preview-lang__switch-btn.is-active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.p-device-frame__items {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.p-device-frame__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.p-device-frame__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  background-color: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
}

.p-device-frame__label svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.p-device-frame__mobile-group .p-device-frame__bezel {
  position: relative;
  background-color: #1c1c1e;
  box-shadow: 0 20px 44px -10px rgba(22, 34, 47, 0.32);
}

.p-device-frame__notch {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000000;
}

.p-device-frame__screen {
  max-height: 46vh;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--color-surface);
}

.p-device-frame__bezel--tablet {
  width: fit-content;
  padding: 16px 16px 16px 24px;
  border-radius: 22px;
}

.p-device-frame__notch--tablet {
  top: 50%;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.p-device-frame__screen--tablet {
  aspect-ratio: 4 / 3;
  height: 46vh;
  padding: 18px;
  border-radius: 10px;
}

.p-device-frame__bezel--phone {
  width: fit-content;
  padding: 26px 8px 14px;
  border-radius: 30px;
}

.p-device-frame__notch--phone {
  top: 9px;
  width: 50px;
  height: 13px;
  border-radius: 999px;
}

.p-device-frame__screen--phone {
  aspect-ratio: 9 / 19.5;
  height: 46vh;
  padding: 14px 10px;
  border-radius: 16px;
}

@media (max-width: 767px) {
  .p-device-frame__switcher {
    display: flex;
  }

  .p-device-frame__item .p-device-frame__label {
    display: none;
  }

  .p-device-frame__item {
    display: none;
  }

  .p-device-frame__item.is-device-active {
    display: flex;
  }

  .p-device-frame__bezel--tablet {
    width: calc(100vw - var(--modal-preview-chrome-x, 64px));
    max-width: none;
  }

  .p-device-frame__screen--tablet {
    width: 100%;
    height: auto;
    max-height: 46vh;
  }
}