/* ===== Revoker for WooCommerce — styl COSHARE ===== */

/* baza */
body .revoker-search-container,
body .revoker-form-container,
body .revoker-success-container,
body .revoker-modal-container{
  font-family:'Montserrat',sans-serif;
  color:#171313;
  font-size:15px;
  line-height:1.6;
}
body .revoker-search-container *,
body .revoker-form-container *,
body .revoker-success-container *,
body .revoker-modal-container *{font-family:'Montserrat',sans-serif}

/* nagłówek */
body .revoker-search-header h2,
body .revoker-form-header h2,
body .revoker-modal-title,
body .revoker-success-container h2{
  margin:0 0 12px;
  font-family:'Playfair Display',serif;
  font-size:34px;
  font-weight:400;
  line-height:1.15;
  color:#171313;
}
body .revoker-search-intro,
body .revoker-form-intro{
  margin:0 0 26px;
  font-size:15px;
  line-height:1.65;
  color:#766A65;
}

/* pudełko z polami: bez drugiej ramki (kartę robi kontener strony) */
body .revoker-search-form-wrapper{
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
body .revoker-search-field,
body .revoker-reason-field,
body .revoker-form-section{margin:0 0 20px}

/* etykiety */
body .revoker-search-container label,
body .revoker-form-container label,
body .revoker-modal-container label{
  display:block;
  margin:0 0 8px;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#171313;
}
body .revoker-search-container label .required,
body .revoker-form-container label .required{color:#AE1A45}
body .revoker-checkbox-label,
body .revoker-modal-container .revoker-checkbox-label{
  display:flex;align-items:flex-start;gap:10px;
  text-transform:none;letter-spacing:0;font-size:14px;font-weight:500;cursor:pointer;
}

/* pola */
body .revoker-search-container input[type=text],
body .revoker-search-container input[type=email],
body .revoker-form-container input[type=text],
body .revoker-form-container input[type=email],
body .revoker-form-container select,
body .revoker-form-container textarea,
body .revoker-modal-container input[type=text],
body .revoker-modal-container select,
body .revoker-modal-container textarea{
  width:100%;
  height:50px;
  padding:0 18px;
  background:#fff;
  border:1px solid #E8DDD5;
  border-radius:14px;
  font-size:15px;
  font-weight:500;
  color:#171313;
  box-shadow:none;
  transition:border-color .2s,box-shadow .2s;
}
body .revoker-form-container textarea,
body .revoker-modal-container textarea{height:auto;min-height:110px;padding:14px 18px}
body .revoker-search-container input::placeholder,
body .revoker-form-container textarea::placeholder{color:#B5A9A3;font-weight:400}
body .revoker-search-container input:focus,
body .revoker-form-container input:focus,
body .revoker-form-container select:focus,
body .revoker-form-container textarea:focus,
body .revoker-modal-container input:focus,
body .revoker-modal-container select:focus,
body .revoker-modal-container textarea:focus{
  outline:0;
  border-color:#AE1A45;
  box-shadow:0 0 0 3px rgba(174,26,69,.14);
}
body .revoker-field-hint,
body .revoker-reason-hint,
body .revoker-items-hint{
  display:block;margin-top:6px;font-size:12px;line-height:1.5;color:#766A65;
}

/* checkboxy */
body .revoker-search-container input[type=checkbox],
body .revoker-form-container input[type=checkbox],
body .revoker-modal-container input[type=checkbox]{
  width:18px;height:18px;margin:2px 0 0;accent-color:#AE1A45;flex:0 0 auto;
}

/* przyciski */
body .revoker-btn,
body .revoker-search-btn,
body .revoker-submit-btn,
body .revoker-button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:15px 30px;
  border:1px solid #AE1A45;
  border-radius:999px;
  background:#AE1A45;
  color:#fff;
  font-family:'Montserrat',sans-serif;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  text-transform:none;
  letter-spacing:0;
  box-shadow:none;
  cursor:pointer;
  transition:background .2s,border-color .2s,color .2s;
}
body .revoker-btn:hover,
body .revoker-search-btn:hover,
body .revoker-submit-btn:hover,
body .revoker-button:hover{background:#8F1538;border-color:#8F1538;color:#fff}
body .revoker-btn-secondary{background:#fff;color:#171313;border-color:#171313}
body .revoker-btn-secondary:hover{background:#171313;border-color:#171313;color:#fff}
body .revoker-search-actions,
body .revoker-form-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
body .revoker-btn[disabled],
body .revoker-submit-btn[disabled]{opacity:.5;cursor:not-allowed}

/* komunikaty */
body .revoker-error-notice,
body .revoker-warning-notice,
body .revoker-notice-warning,
body .revoker-no-items-warning{
  margin:18px 0;padding:14px 18px;
  background:#FBF1F3;border:1px solid #E7B9C6;border-radius:14px;
  color:#8F1538;font-size:14px;
}
body .revoker-error-message{margin:0;color:#8F1538}
body .revoker-info-box,
body .revoker-legal-notice,
body .revoker-email-notice,
body .revoker-deadline-notice{
  margin:18px 0;padding:14px 18px;
  background:#F4F4F4;border:0;border-radius:14px;
  color:#4a4647;font-size:13.5px;line-height:1.6;
}
body .revoker-deadline-urgent,
body .revoker-deadline-today,
body .revoker-urgent{background:#FBF1F3;color:#8F1538}

/* blok „Uwagi" pod formularzem */
body .revoker-search-info{
  margin-top:28px;padding:22px 24px;
  background:#F4F4F4;border-radius:20px;
}
body .revoker-search-info h3{
  margin:0 0 12px;
  font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#AE1A45;
}
body .revoker-search-info ul{margin:0;padding:0;list-style:none}
body .revoker-search-info li{
  padding:10px 0;border-top:1px solid #E6E1DD;font-size:13.5px;line-height:1.55;color:#4a4647;
}
body .revoker-search-info li:first-child{border-top:0;padding-top:0}

/* wynik wyszukiwania / podsumowanie zamówienia */
body .revoker-search-result,
body .revoker-order-summary,
body .revoker-order-details,
body .revoker-withdrawal-section,
body .revoker-info-section{
  margin:22px 0 0;padding:22px 24px;
  background:#fff;border:1px solid #E8DDD5;border-radius:20px;
}
body .revoker-order-summary h3,
body .revoker-order-details h3,
body .revoker-withdrawal-section h3,
body .revoker-info-section h3,
body .revoker-form-section h3{
  margin:0 0 14px;
  font-family:'Playfair Display',serif;font-size:22px;font-weight:400;color:#171313;
}

/* tabele (dane zamówienia, produkty) */
body .revoker-order-info-table,
body .revoker-items-table,
body .revoker-order-table{width:100%;border-collapse:collapse;border:0}
body .revoker-order-info-table th,
body .revoker-order-info-table td,
body .revoker-items-table th,
body .revoker-items-table td,
body .revoker-order-table th,
body .revoker-order-table td{
  padding:12px 8px;border:0;border-bottom:1px solid #EFE9E4;
  font-size:14px;text-align:left;vertical-align:middle;background:transparent;color:#171313;
}
body .revoker-order-info-table th,
body .revoker-items-table thead th,
body .revoker-order-table thead th{
  font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#766A65;
}
body .revoker-items-table tr:last-child td,
body .revoker-order-table tr:last-child td{border-bottom:0}
body .revoker-total-label{font-weight:700}
body .revoker-total-amount,
body .revoker-withdrawal-total,
body .revoker-order-total{font-size:20px;font-weight:700;color:#AE1A45}
body .revoker-withdrawal-total-row td,
body .revoker-withdrawal-total-row th{border-top:1px solid #171313;border-bottom:0;padding-top:16px}

/* statusy jako pigułki */
body .revoker-status{
  display:inline-block;padding:5px 12px;border-radius:999px;
  font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  background:#171313;color:#fff;
}
body .revoker-status-available,
body .revoker-status-confirmed,
body .revoker-status-completed{background:#5b7a52;color:#fff}
body .revoker-status-pending{background:#C48A1A;color:#fff}
body .revoker-status-expired,
body .revoker-status-cancelled{background:#766A65;color:#fff}

/* sukces */
body .revoker-success-container{
  padding:28px;background:#F4F4F4;border-radius:20px;text-align:left;
}
body .revoker-success-icon{color:#5b7a52}
body .revoker-success-details,
body .revoker-next-steps{margin-top:16px;font-size:14px;line-height:1.65;color:#4a4647}

/* adres zwrotu */
body .revoker-return-address{
  margin:16px 0;padding:16px 20px;
  background:#F4F4F4;border:0;border-left:3px solid #AE1A45;border-radius:0 14px 14px 0;
  font-style:normal;font-size:14px;line-height:1.6;color:#171313;
}

/* modal */
body .revoker-modal-overlay{background:rgba(23,19,19,.55)}
body .revoker-modal-container{
  border-radius:25px;background:#fff;border:1px solid #E8DDD5;box-shadow:0 24px 60px rgba(23,19,19,.25);
}
body .revoker-modal-header,
body .revoker-modal-footer{border-color:#EFE9E4}
body .revoker-modal-close{color:#171313}

/* telefon */
@media (max-width:600px){
  body .revoker-search-header h2,
  body .revoker-form-header h2,
  body .revoker-modal-title{font-size:28px}
  body .revoker-search-actions .revoker-btn,
  body .revoker-search-btn,
  body .revoker-submit-btn{width:100%}
  body .revoker-search-result,
  body .revoker-order-summary,
  body .revoker-withdrawal-section{padding:18px 16px}
  body .revoker-items-table,
  body .revoker-order-table{display:block;overflow-x:auto}
}


body .revoker-search-intro{display:none}
body .revoker-search-info li:nth-child(3){display:none}

/* boks „Prawo do odstąpienia” na stronie zamówienia (Moje konto / Dziękujemy) */
body .revoker-withdrawal-section{
  font-family:"Montserrat",sans-serif;color:#171313;font-size:15px;line-height:1.65;
}
body .revoker-withdrawal-section .revoker-withdrawal-info h3{margin:0 0 14px}
body .revoker-withdrawal-section .revoker-withdrawal-info p{
  margin:0 0 12px;font-family:"Montserrat",sans-serif;font-size:14.5px;line-height:1.65;color:#4a4647;
}
body .revoker-withdrawal-section .revoker-deadline strong{color:#171313}
body .revoker-withdrawal-section button.revoker-button.button{
  display:inline-flex;align-items:center;justify-content:center;margin-top:8px;
  padding:15px 30px !important;border:1px solid #AE1A45 !important;border-radius:999px !important;
  background:#AE1A45 !important;color:#fff !important;
  font-family:"Montserrat",sans-serif;font-size:15px;font-weight:700;line-height:1.2;
  text-transform:none;letter-spacing:0;box-shadow:none;cursor:pointer;
  transition:background .2s,border-color .2s;
}
body .revoker-withdrawal-section button.revoker-button.button:hover,
body .revoker-withdrawal-section button.revoker-button.button:focus{
  background:#8F1538 !important;border-color:#8F1538 !important;color:#fff !important;
}

/* okno odstąpienia: dopracowanie (27.10.2026) */
/* ostrzeżenie: spokojny szary blok z bordowym paskiem zamiast różu i żółci */
body .revoker-notice.revoker-notice-warning{
  margin:0 0 22px;padding:16px 20px;
  background:#F4F4F4;border:0;border-left:3px solid #AE1A45;border-radius:0 14px 14px 0;
  color:#171313;font-size:14px;line-height:1.6;
}
body .revoker-notice.revoker-notice-warning p{margin:0 0 6px;color:#171313}
body .revoker-notice.revoker-notice-warning p:last-child{margin:0;color:#4a4647}
body .revoker-notice.revoker-notice-warning strong{color:#AE1A45}

/* wiersz „Termin do odstąpienia”: bez żółtego tła, wyróżniony kolorem marki */
body .revoker-order-table td.revoker-deadline{
  background:transparent;border:0;border-bottom:1px solid #EFE9E4;
  color:#AE1A45;font-weight:700;padding:12px 8px;
}

/* tabele z zaokrąglonymi rogami */
body .revoker-order-table,
body .revoker-items-table{
  border-collapse:separate;border-spacing:0;border-radius:14px;overflow:hidden;
}
body .revoker-order-table tr:first-child > *:first-child,
body .revoker-items-table thead tr:first-child > *:first-child{border-top-left-radius:14px}
body .revoker-order-table tr:first-child > *:last-child,
body .revoker-items-table thead tr:first-child > *:last-child{border-top-right-radius:14px}
body .revoker-order-table tr:last-child > *:first-child,
body .revoker-items-table tfoot tr:last-child > *:first-child{border-bottom-left-radius:14px}
body .revoker-order-table tr:last-child > *:last-child,
body .revoker-items-table tfoot tr:last-child > *:last-child{border-bottom-right-radius:14px}
body .revoker-items-table tfoot td{background:#F4F4F4}

/* nagłówek „Wybierz pozycje…” jak pozostałe nagłówki sekcji */
body .revoker-order-details h4,
body .revoker-modal-container h4{
  margin:28px 0 14px;
  font-family:"Playfair Display",serif;font-size:22px;font-weight:400;line-height:1.25;color:#171313;
}

/* odstęp nad polem powodu */
body .revoker-reason-field{margin:32px 0 0}
body .revoker-legal-notice{margin-top:24px}

/* po wyszukaniu zamówienia: formularz na całą szerokość karty strony, bez drugiej ramki */
body .revoker-search-container:has(.revoker-form-container){max-width:none}
body .revoker-search-result:has(.revoker-form-container){
  margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
}
body .revoker-search-result .revoker-form-container{max-width:none;margin:0}

/* pole numeru konta do zwrotu (inc/revoker-konto.php, assets/js/revoker-konto.js) */
body .sa-konto{margin:24px 0 0}
body .sa-konto .sa-konto__pole{margin:0 0 16px}
body .sa-konto .sa-konto__gwiazdka{color:#AE1A45}
body .sa-konto .sa-konto__hint{display:block;margin-top:2px}
body .sa-konto .sa-konto__blad{
  margin:12px 0 0;padding:12px 16px;background:#FBF1F3;border:1px solid #E7B9C6;border-radius:14px;
  color:#8F1538;font-size:13.5px;line-height:1.5;
}
body .sa-konto .sa-konto__blad[hidden]{display:none}

/* przycisk zamknięcia okna: × zostaje widoczny także po najechaniu i po kliknięciu (motyw dawał biały tekst) */
body .revoker-modal-close,
body .revoker-modal-close:hover,
body .revoker-modal-close:focus,
body .revoker-modal-close:active{
  background:#fff !important;color:#171313 !important;
}
body .revoker-modal-close:hover,
body .revoker-modal-close:focus{background:#F4F4F4 !important;border-color:#AE1A45 !important}
