/* =========================================
   KOT PRINT BUTTONS
========================================= */

.kot-print-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid #D4AF37;
  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      #D4AF37,
      #F4D77A,
      #D4AF37
    );

  color: #2A1414;
  font-family: "Georgia", serif;
  font-size: 15px;
  font-weight: 800;

  cursor: pointer;

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.kot-print-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);

  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.kot-print-btn:active {
  transform: scale(0.98);
}

.kot-print-btn.cancelled {
  border-color: #ff7777;

  background:
    linear-gradient(
      135deg,
      #7B1616,
      #B82929,
      #7B1616
    );

  color: #FFF2F2;
}


/* =========================================
   SETTINGS PAGE WRAPPER
========================================= */

.kot-settings-card {
  position: relative;

  width: 90%;
  max-width: 820px;

  margin: 28px auto;
  padding: 32px;

  overflow: hidden;

  border: 2px solid #D4AF37;
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      #3B1F1F,
      #2A1414
    );

  color: #F5E6C8;

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.kot-settings-card::before {
  content: "";

  position: absolute;
  top: -120px;
  right: -120px;

  width: 300px;
  height: 300px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(212, 175, 55, 0.22),
      transparent 70%
    );

  pointer-events: none;
}

.kot-settings-card::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  top: 78px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(212, 175, 55, 0.8),
      transparent
    );
}


/* =========================================
   HEADING
========================================= */

.kot-settings-card h2 {
  position: relative;
  z-index: 1;

  margin: 0 0 34px;

  color: #F4D77A;

  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.3px;

  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4);
}


/* =========================================
   SETTING ROWS
========================================= */

.kot-setting-row {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(270px, 1.25fr);

  align-items: center;
  gap: 28px;

  margin-bottom: 18px;
  padding: 16px 18px;

  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.kot-setting-row:hover {
  border-color: rgba(212, 175, 55, 0.52);
}

.kot-setting-row label {
  color: #F5E6C8;

  font-size: 17px;
  font-weight: 700;
}


/* =========================================
   SELECTS
========================================= */

.kot-setting-row select {
  width: 100%;
  min-height: 46px;

  padding: 10px 42px 10px 14px;

  border: 1px solid #C9A331;
  border-radius: 10px;

  background:
    linear-gradient(
      180deg,
      #FFF9EE,
      #F4E7D2
    );

  color: #2A1414;

  font-family: "Georgia", serif;
  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.kot-setting-row select:hover {
  transform: translateY(-1px);

  border-color: #F4D77A;
}

.kot-setting-row select:focus {
  border-color: #F4D77A;

  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.22),
    0 7px 18px rgba(0, 0, 0, 0.25);
}

.kot-setting-row select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}


/* =========================================
   CHECKBOX
========================================= */

.kot-setting-row input[type="checkbox"] {
  width: 24px;
  height: 24px;

  margin: 0;

  accent-color: #D4AF37;

  cursor: pointer;

  filter:
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.25));
}


/* =========================================
   ACTION BUTTONS
========================================= */

.kot-settings-actions {
  position: relative;
  z-index: 1;

  display: flex;
  gap: 14px;
  flex-wrap: wrap;

  margin-top: 28px;
}

.kot-action-btn {
  min-width: 160px;

  padding: 13px 20px;

  border: 1px solid #D4AF37;
  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      #D4AF37,
      #F4D77A,
      #D4AF37
    );

  color: #2A1414;

  font-family: "Georgia", serif;
  font-size: 15px;
  font-weight: 800;

  cursor: pointer;

  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.kot-action-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);

  box-shadow:
    0 13px 28px rgba(0, 0, 0, 0.35);
}

.kot-action-btn:active {
  transform: scale(0.97);
}

.kot-action-btn.secondary {
  border-color: #A87D31;

  background:
    linear-gradient(
      135deg,
      #5B3424,
      #7A4A2E,
      #5B3424
    );

  color: #F5E6C8;
}


/* =========================================
   WARNINGS / STATUS
========================================= */

.kot-browser-warning {
  position: relative;
  z-index: 1;

  margin-top: 18px;
  padding: 14px 16px;

  border: 1px solid #D4AF37;
  border-left: 5px solid #D4AF37;
  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      rgba(212, 175, 55, 0.16),
      rgba(212, 175, 55, 0.06)
    );

  color: #F5E6C8;

  line-height: 1.5;
}

.kot-settings-message {
  position: relative;
  z-index: 1;

  min-height: 24px;
  margin-top: 18px;

  color: #F4D77A;

  font-size: 15px;
  font-weight: 700;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 760px) {

  .kot-settings-card {
    width: auto;
    margin: 14px;
    padding: 22px;
  }

  .kot-settings-card h2 {
    font-size: 25px;
  }

  .kot-setting-row {
    grid-template-columns: 1fr;
    gap: 10px;

    padding: 14px;
  }

  .kot-settings-actions {
    flex-direction: column;
  }

  .kot-action-btn {
    width: 100%;
  }
}

/* =========================================
   DISABLED KOT SETTINGS
========================================= */

.kot-dependent-setting {
  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.kot-dependent-setting.kot-setting-disabled {
  opacity: 0.42;

  filter:
    grayscale(0.45);

  border-color:
    rgba(212, 175, 55, 0.1);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.008)
    );
}

.kot-dependent-setting.kot-setting-disabled:hover {
  border-color:
    rgba(212, 175, 55, 0.1);
}

.kot-setting-row select:disabled {
  cursor: not-allowed;

  color: #776F68;

  border-color: #938A80;

  background:
    linear-gradient(
      180deg,
      #DDD7CF,
      #C8C0B7
    );

  box-shadow:
    inset 0 2px 4px
    rgba(0, 0, 0, 0.12);
}

.kot-action-btn:disabled {
  cursor: not-allowed;

  opacity: 0.4;

  filter:
    grayscale(0.65);

  transform: none;

  box-shadow: none;
}

.kot-action-btn:disabled:hover {
  transform: none;

  filter:
    grayscale(0.65);

  box-shadow: none;
}