@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

.cantinewinewrapper {
  position: fixed;
  top: 0px;
  bottom: 0px;
  width: 100%;
  max-width: 600px;
  height: 100%;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 30px 0px;
  background-color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  z-index: 99999;
  transition: all 0.8s ease;
}

.cw_hidden {
  right: -100%;
  transition: all 0.8s ease;
}

.cw_show {
  right: 0px;
  transition: all 0.8s ease;
}

.cantinewinewrapper button.cw_button_close {
  position: absolute !important;
  right: 10px !important;
  top: 10px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  background: #fff !important;
  color: #b5b5b5 !important;
  flex: 0 0 30px !important;
  font-family: sans-serif !important;
  line-height: 0.8em !important;
  z-index: 999 !important;
  border-radius: 10px !important;
  border: 1px solid #b5b5b5 !important;
  font-weight: bold !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  transform: none !important;
}

.cantinewinewrapper button.cw_button_close:hover {
  background-color: #b5b5b5 !important;
}

.cantinewinewrapper button.cw_button_close:hover:before,
.cantinewinewrapper button.cw_button_close:hover:after {
  background-color: #fff !important;
}

.cantinewinewrapper button.cw_button_close:before,
.cantinewinewrapper button.cw_button_close:after {
  position: absolute !important;
  left: 18px !important;
  content: " " !important;
  height: 15px !important;
  width: 2px !important;
  background-color: #b5b5b5 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform-origin: center !important;
}

.cantinewinewrapper button.cw_button_close:before {
  transform: rotate(45deg) !important;
}

.cantinewinewrapper button.cw_button_close:after {
  transform: rotate(-45deg) !important;
}

.cw_nascondi {
  display: none;
}

.iframecw {
  position: relative;
  height: 100%;
  width: 100%;
  border: 0px;
  overflow: scroll;
}

/* pagina impostazioni admin */

.cw__admin-wrap {
  max-width: 100% !important;
  margin: 20px 20px 20px 0 !important;
  font-family: "Poppins", sans-serif;
}

#cw__form {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 0 !important;
  margin-bottom: 2rem;
  overflow: hidden;
  max-width: none;
  width: 100%;
  font-family: "Poppins", sans-serif;
}

.cw__form-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.logocw {
  width: 160px;
  margin-bottom: 1rem;
}

.cw__form-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.25rem 0;
  padding: 0;
}

.cw__form-subtitle {
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

.cw__form-body {
  padding: 1.5rem 2.5rem 2rem;
}

.cw__input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cw__input-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.2px;
}

.cw__input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cw__input {
  flex: 1;
  max-width: 400px;
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cw__input::placeholder {
  color: #bbb;
}

.cw__input:focus {
  outline: none;
  border-color: #b5005c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(181, 0, 92, 0.08);
}

#submit {
  padding: 12px 28px;
  background: #b5005c;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

#submit:hover {
  background: #93004b;
}

#submit:active {
  transform: scale(0.97);
}

#cw_result {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 !important;
  font-family: "Poppins", sans-serif;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
}

#cw_result:empty {
  display: none;
}

/* --- Tabs --- */
.cw__tabs {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
  padding: 0 0.5rem;
  gap: 0;
  overflow-x: auto;
}

.cw__tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cw__tab:hover {
  color: #555;
}

.cw__tab--active {
  color: #b5005c;
  border-bottom-color: #b5005c;
  font-weight: 600;
}

.cw__tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.cw__tab-icon svg {
  width: 18px;
  height: 18px;
}

.cw__tab-label {
  line-height: 1;
}

/* --- Tab panels --- */
.cw__tab-panel {
  display: none;
}

.cw__tab-panel--active {
  display: block;
}

.cw__area {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.cw__area:last-child {
  border-bottom: none;
}

.cw_titolo_shortcodes {
  text-transform: uppercase;
  margin: 0 0 0.25rem 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #b5005c;
}

.cw__area > p {
  color: #666;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.cw__wrapper__column__items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.cw__item {
  width: calc(100% / 3 - 1rem);
  min-width: 260px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cw__item:hover {
  border-color: #d0d0d0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cw__item__name {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
}

.cw__item__disponibility {
  font-size: 13px;
  color: #888;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.cw__item__choice__wrapper {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cw__item__choice__item {
  flex: 1;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.cw__choice {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #b5005c;
  margin-bottom: 0.4rem;
}

/* --- Shortcode wrapper con pulsante copia --- */
.cw__sc-wrap {
  position: relative;
}

.cw__copy-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cw__copy-btn svg {
  width: 14px;
  height: 14px;
}

.cw__copy-btn:hover {
  color: #b5005c;
  border-color: #b5005c;
  background: #fdf0f5;
}

.cw__copy-btn--done {
  color: #16a34a;
  border-color: #16a34a;
  background: #f0fdf4;
}

.cw__choice__shortcode {
  color: #777;
  font-size: 12px;
  font-family: monospace;
  word-break: break-all;
  line-height: 1.5;
  background: #f7f7f7;
  padding: 6px 36px 6px 8px;
  border-radius: 4px;
  border: 1px solid #eee;
}

.cw__hint {
  color: #999;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 680px;
  padding: 1rem 1.25rem;
  background: #fafafa;
  border-radius: 8px;
  border-left: 3px solid #b5005c;
}

.cw__item__hint {
  color: #888;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  margin: 0.35rem 0 0.75rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.cw__item__shortcode {
  font-size: 12px;
  font-family: monospace;
  color: #777;
  background: #f7f7f7;
  padding: 8px 36px 8px 10px;
  border-radius: 4px;
  border: 1px solid #eee;
  word-break: break-all;
  line-height: 1.5;
}

.cw__item__shortcode__name {
  font-weight: 600;
}

.cw__divisore {
  border: none;
  border-bottom: 1px solid #f0f0f0;
  margin: 0.75rem 0;
}

/* booking */
.iframeCwTipiVisita,
.iframeCwVini,
.iframeCwCollegate,
.iframeCwRecensioni,
.iframeCwFaq,
.iframeCwSezioni {
  width: 100%;
  position: relative;
  overflow: scroll;
  border: 0px;
  min-height: 500px;
}