/* =============================================================================
   STACJA RETURNS - FRONT
============================================================================= */

.stacjaret-order-action {
  margin: 16px 0;
}

.stacjaret-open-btn {
  display: inline-flex;
  align-items: center;
  background: #AE3B1D;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease;
}
.stacjaret-open-btn:hover { background: #8B2F17; color: #fff; }

.stacjaret-deadline-info {
  font-size: 13px;
  color: #666;
  margin: 8px 0 0;
}
.stacjaret-deadline-info.stacjaret-disabled { color: #b71c1c; }

/* ---- Guest trigger button (na stronie zwrotów) ---- */
.stacjaret-guest-trigger {
  display: inline-flex;
  align-items: center;
  background: #AE3B1D;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease;
}
.stacjaret-guest-trigger:hover { background: #8B2F17; }

/* ---- Overlay & modal ---- */
/* Reset box-sizing TYLKO w obrębie modala - chroni przed motywami
   bez globalnego border-box (inputy z width:100% + padding nie wychodzą poza ramkę) */
.stacjaret-overlay,
.stacjaret-overlay * {
  box-sizing: border-box;
}

.stacjaret-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,.55);
  display: none;
  z-index: 999999;
  padding: 30px 16px;
  overflow-y: auto;
}
.stacjaret-overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.stacjaret-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  font-family: 'Inter', sans-serif;
  animation: stacjaret-pop .25s ease;
}
@keyframes stacjaret-pop {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.stacjaret-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid #eee;
}
.stacjaret-modal-header h3 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: #222;
}
.stacjaret-close {
  background: none; border: none; font-size: 26px;
  line-height: 1; color: #999; cursor: pointer;
}
.stacjaret-close:hover { color: #222; }

.stacjaret-modal-body { padding: 24px 26px; }
.stacjaret-modal-footer {
  padding: 18px 26px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ---- Guest identification form ---- */
.stacjaret-field { margin-bottom: 16px; }
.stacjaret-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: #444; margin-bottom: 6px;
}
.stacjaret-field input,
.stacjaret-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}
.stacjaret-field input:focus,
.stacjaret-field textarea:focus {
  outline: none; border-color: #AE3B1D;
}

/* ---- Items list ---- */
.stacjaret-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 10px;
}
.stacjaret-item.excluded {
  background: #fdecea;
  border-color: #f5c6c2;
}
.stacjaret-item input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}
.stacjaret-item.excluded input[type="checkbox"] { cursor: not-allowed; }

.stacjaret-item-info { flex: 1; }
.stacjaret-item-name {
  font-weight: 600; font-size: 14px; color: #222; margin: 0 0 4px;
}
.stacjaret-item-meta { font-size: 12px; color: #888; }
.stacjaret-excluded-msg {
  display: block;
  color: #b71c1c;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.stacjaret-qty {
  display: flex; align-items: center; gap: 6px;
}
.stacjaret-qty label { font-size: 12px; color: #888; }
.stacjaret-qty input {
  width: 56px; padding: 6px; text-align: center;
  border: 2px solid #e8e8e8; border-radius: 8px;
}

/* ---- Buttons ---- */
.stacjaret-btn {
  border: none; border-radius: 30px;
  padding: 12px 26px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .25s ease;
}
.stacjaret-btn-primary { background: #AE3B1D; color: #fff; }
.stacjaret-btn-primary:hover { background: #8B2F17; }
.stacjaret-btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.stacjaret-btn-secondary {
  background: #fff; color: #555; border: 2px solid #e8e8e8;
}
.stacjaret-btn-secondary:hover { border-color: #AE3B1D; color: #AE3B1D; }

/* ---- Messages ---- */
.stacjaret-alert {
  padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px;
}
.stacjaret-alert-error { background: #fdecea; color: #b71c1c; }
.stacjaret-alert-success { background: #e8f5e9; color: #2e7d32; }

/* ---- Instructions step ---- */
.stacjaret-instructions {
  background: #faf9f5; border-radius: 12px; padding: 20px; margin-top: 8px;
}
.stacjaret-instructions h4 {
  font-family: 'Poppins', sans-serif; font-size: 16px; margin: 0 0 12px; color: #222;
}
.stacjaret-instructions pre {
  white-space: pre-wrap; font-family: inherit; font-size: 14px;
  color: #444; line-height: 1.7; margin: 0;
}
.stacjaret-address-box {
  background: #fff; border: 2px dashed #AE3B1D; border-radius: 10px;
  padding: 16px; margin-top: 14px; font-size: 14px; color: #222; white-space: pre-wrap;
}
.stacjaret-ref-badge {
  display: inline-block; background: #AE3B1D; color: #fff;
  padding: 6px 14px; border-radius: 20px; font-weight: 600; font-size: 13px;
}

.stacjaret-loading { text-align: center; padding: 30px; color: #888; }
.stacjaret-hidden { display: none !important; }
