/* Stylizacja kontenera formularza */
#rtr-confirmation-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#rtr-confirmation-form h2 {
  text-align: center;
  font-size: 24px;
  color: #333;
}

/* Stylizacja przycisków */
.confirm-btn {
  padding: 10px 20px;
  border: 2px solid #0073aa;
  border-radius: 5px;
  background-color: white;
  color: #0073aa;
  font-size: 16px;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.confirm-btn:hover {
  background-color: #0073aa;
  color: white;
}

.confirm-btn.selected {
  background-color: #0073aa;
  color: white;
  border-color: #005f8d;
}

/* Stylizacja pola tekstowego */
#message {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

#message:focus {
  border-color: #0073aa;
  outline: none;
}

/* Stylizacja przycisku submit */
input[type="submit"] {
  padding: 10px 30px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
  background-color: #005f8d;
}

/* Stylizacja wiadomości sukcesu i błędu */
#confirmation-result p.success {
  color: #28a745;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 5px;
  margin-top: 5px;
}

#confirmation-result p.error {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 5px; 
  margin-top: 5px;
}

/* Stylizacja dla dodatkowych informacji dla właściciela oferty */
.rental-info {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.rental-info p {
  margin: 5px 0;
}

.rental-info strong {
  color: #333;
}

/* Stylizacja dla zdjęcia produktu */
.rtr-product-image {
  height: 150px;       /* Ustawienie wysokości zdjęcia */
  width: auto;         /* Zachowanie proporcji szerokości */
  display: block;      /* Przekształcenie obrazu w blok */
  margin: 0 auto;      /* Wyśrodkowanie obrazu */
  border: 1px solid #ddd; /* Opcjonalne obramowanie */
  border-radius: 5px; /* Zaokrąglone rogi dla estetyki */
}




/* */
#rtr-inquiry-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Ciemne, przezroczyste tło */
  z-index: 999; /* Ustawiamy, by overlay był na samej górze */
}
#rtr-inquiry-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;  
  padding: 20px;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  font-family: "Inter", sans-serif !important;
  z-index: 1000;
}

#rtr-close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

#rtr-close-popup:hover {
  color: #fff;
  background-color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


#rtr-inquiry-popup h2 {
  font-family: "Inter", sans-serif;
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #333;
}

#rtr-inquiry-popup p {
  margin-bottom: 20px;
  font-size: 1em;
  color: #666;
}

#rtr-inquiry-form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #555;
  font-size: 0.9em;
}

#rtr-inquiry-form input,
#rtr-inquiry-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

#rtr-inquiry-form textarea {
    height: 100px;
    resize: none;
}

#rtr-inquiry-form button {
  width: 100%;
  padding: 12px;
  background-color: #666;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
}

#rtr-inquiry-form button:hover {
  background-color: #333;
}

@media (max-width: 768px) {
  #rtr-inquiry-popup {
      width: 90%;
  }
}



/* nunito-300 - latin-ext_latin */


.container-rtr-widger {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border: 1px solid #dedee2;
  border-top: none;
}

.container-rtr-widger .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*padding: 20px 0;*/
  border-bottom: 1px solid #ccc;
}

.container-rtr-widger .item:last-child {
  border-bottom: none;
}

.container-rtr-widger .image {
  flex: 1;
  max-width: 100px;
}

.container-rtr-widger .image img {
  max-width: 100px;
  max-height: 80px;
  border-radius: 5px;
}

.container-rtr-widger .details {
  flex: 3;
  padding-right: 20px;
}

.container-rtr-widger .details h2 {
  font-family: "Inter", sans-serif !important;
  font-size: 18px;
  color: #46435b !important;
  margin-bottom: 0px;
  font-weight: 700;
}

.container-rtr-widger .details .subtitle {
  font-size: 14px;
}

.container-rtr-widger .details .description {
  font-size: 12px;
}

.container-rtr-widger .details p {
  font-family: "Inter", sans-serif;  
  color: #46435b !important;
  margin-bottom: 5px;
  line-height: 1.5;
  margin-top: 0px;
  max-height: 4.2em;
  overflow: hidden;
}

.container-rtr-widger .button {
  flex: 1;
  text-align: right;
}

.container-rtr-widger .button .price {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  text-align: right;
}

.container-rtr-widger .button button {
  padding: 10px 20px;
  font-size: 14px;
  color: white;
  background-color: #666;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.container-rtr-widger .button button:hover {
  background-color: #333;
}

/* Standardowy układ (desktop, tablet) */
.container-rtr-widger .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  flex-direction: row; /* Ustawia elementy obok siebie */
}

@media (max-width: 768px) {
  .container-rtr-widger .item {
      flex-direction: column;
  }

  .container-rtr-widger .image, 
  .container-rtr-widger .details, 
  .container-rtr-widger .button {
      width: 100%;
  }

  .container-rtr-widger .image {
      order: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
  }

  .container-rtr-widger .image img {
      max-width: 240px;
      max-height: 135px;
  }

  .container-rtr-widger .details {
      order: 2;
      padding: 10px 0;
  }

  .container-rtr-widger .button {
      order: 3;
      margin-top: 10px;

      /* Dodane style Flexbox dla urządzeń mobilnych */
      display: flex;
      flex-direction: row; /* Ustawiamy obok siebie */
      flex-wrap: nowrap; /* Zapobiegamy łamaniu linii */
      justify-content: space-between; /* Dzieli przestrzeń między ceną a przyciskiem */
      align-items: center; /* Wyśrodkowuje pionowo */
  }

  .container-rtr-widger .price {
      font-size: 16px;
      font-weight: bold;
      margin-right: 10px;
      color: #46435b;
  }
}
