/* ===============================
   DESIGN TOKENS
=============================== */
:root {
  --black: #353535;
  --olive: #8DAC99;
  --bg: #F6F6F5;
  --card: #FFFFFF;
  --border: rgba(0,0,0,.08);
  --text-muted: #6b6b6b;
}

/* ===============================
   BASE
=============================== */
.order-premium {
  min-height: 100vh;
  background: var(--bg);
  padding: 80px 20px;
  color: var(--black);
}

.order-premium * {
  box-sizing: border-box;
}

.op-container {
  max-width: 860px;
  margin: 0 auto;
}

/* FORM CARD */
.op-form {
  background: var(--card);
  padding: 50px;
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.06);
}

/* ===============================
   GRID ROWS
=============================== */
.op-row {
  display: grid;
  gap: 16px;
}

.op-row-2 {
  grid-template-columns: 1fr;
}

.op-row-3,
.op-row-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .op-row-2 {
    grid-template-columns: 1fr 1fr;
  }
  .op-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .op-row-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===============================
   INPUTS
=============================== */
.op-form input[type="text"],
.op-form input[type="tel"] {
  width: 100%;
  padding: 18px 22px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  font-size: 15px;
  background: #fff;
  transition: border .3s ease;
}

.op-form input:focus {
  outline: none;
  border-color: var(--olive);
}

/* ===============================
   OPTION BUTTONS
=============================== */
.op-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid #e6e6e6;
  cursor: pointer;
  background: #fff;
  transition: all .25s ease;
}

.op-option input {
  display: none;
}

.op-option:has(input:checked) {
  border-color: var(--olive);
  background: rgba(141,172,153,.08);
}

/* ===============================
   COURIER FIELDS
=============================== */
.op-courier-fields {
  display: none;
  margin-top: 16px;
  gap: 14px;
}

.op-courier-fields.is-visible {
  display: grid;
}

@media (min-width: 768px) {
  .op-courier-fields.is-visible {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===============================
   SUBMIT
=============================== */
.op-submit button {
  width: 100%;
  padding: 20px;
  border-radius: 999px;
  border: none;
  background: var(--black);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background .3s ease, transform .2s ease;
  margin-top: 40px;
}

.op-submit button:hover {
  background: var(--olive);
  transform: translateY(-1px);
}

/* ===============================
   INPUT SELECT
=============================== */
.op-input {
  width: 100%;
  padding: 18px 22px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  cursor: pointer;
}

.op-input:focus {
  outline: none;
  border-color: var(--olive);
}

/* ===============================
   PAYMENT MODAL
=============================== */
.payment-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.payment-modal.active {
  display: block;
}

.payment-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1;
}

.payment-modal__box {
  position: relative;
  max-width: 420px;
  margin: 8vh auto;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  z-index: 2;
}

.payment-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.payment-modal__title {
  text-align: center;
  margin-bottom: 20px;
}

.payment-methods {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.pay-btn {
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #f7f7f7;
}

.pay-btn.google { background: #e8f0fe; }
.pay-btn.apple  { background: #000; color: #fff; }

.pay-btn.active {
  outline: 2px solid #4caf50;
  background: #e8f5e9;
}

.card-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.card-row {
  display: flex;
  gap: 10px;
}

.pay-submit {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #4caf50;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}



/* ===============================
   DELIVERY VISIBILITY (FIX)
=============================== */

/* КУРʼЄР */
.op-courier-fields {
  display: none;
}

.op-courier-fields.is-visible {
  display: grid;
  gap: 14px;
}

/* НОВА ПОШТА */
.op-np-fields {
  display: none;
}

.op-np-fields.is-visible {
  display: block;
  margin-top: 16px;
}




