@charset "UTF-8";
.qrcdr-get-placeholder img {
  max-width: 100%;
  height: auto;
  width: 200px;
}

.qrcdr-get-watermarks img {
  max-width: 100%;
  height: auto;
  display: block;
}

.qrcdr-wrap-watermark {
  position: relative;
  display: inline-block;
  padding: 10px;
  width: 40px;
  margin-right: 10px;
}

.qrcdr-remove-template {
  position: absolute;
  top: -5px;
  right: -5px;
  color: red;
}

table.media .column-title .media-icon img {
  width: 60px;
}

.post-type-qrcdr #postimagediv .inside img {
  width: 100%;
}

.wrap-template-preview {
  width: 60px;
}

.wrap-template-preview svg {
  width: 100%;
  height: auto;
}

.column-qrcdr-thumb {
  width: 60px;
}

.qrcdr-tab-nav .tabs-content {
  display: none;
}

.qrcdr-tab-nav .tabs-content.active {
  display: block;
}

.qrcdr-plan-box {
  margin-bottom: 20px;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  background: #fff;
}

.qrcdr-plan-box .hndle {
  cursor: default;
  padding: 12px;
  margin: 0;
  border-bottom: 1px solid #c3c4c7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qrcdr-plan-box .hndle span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcdr-plan-box .inside {
  padding: 15px;
}

.qrcdr-plan-box .notice-dismiss {
  position: static;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #72777c;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
}

.qrcdr-plan-box .notice-dismiss:before {
  content: "\f153"; /* Dashicon for trash */
  font-family: "dashicons";
  font-size: 20px;
  line-height: 1;
}

.qrcdr-plan-box .notice-dismiss:hover {
  color: #dc3232;
}

#qrcdr-add-new-plan {
  margin-top: 10px;
}

.qrcdr-plan-box .form-table th {
  width: 200px; /* Adjust as needed */
}

/* admin/assets/css/qrcdr-admin-plans.css */
.qrcdr-stripe-status-message {
  font-size: 0.9em;
  padding-top: 5px;
}

.qrcdr-stripe-status-message .qrcdr-status-info {
  color: #0073aa; /* Blu WordPress */
}

.qrcdr-stripe-status-message .qrcdr-status-success {
  color: #46b450; /* Verde */
  font-weight: bold;
}

.qrcdr-stripe-status-message .qrcdr-status-error {
  color: #dc3232; /* Rosso */
  font-weight: bold;
}

.qrcdr-stripe-status-message .qrcdr-status-warning {
  color: #ffb848; /* Arancione */
}

.qrcdr-range-slider-wrapper {
  backgound: #fff;
  border: 1px solid #9F9F9F;
  padding: 1em;
  display: inline-flex;
}

.qrcdr-range-value {
  margin-left: 1em;
}

/* ==========================================================================
   QRCDR ADMIN UI - Stili Generali e Wrapper
   ========================================================================== */
.qrcdr-admin-ui {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
}

.qrcdr-admin-ui #qrcdr-plans-editor {
  margin-top: 20px;
}

.qrcdr-admin-ui .tablenav {
  height: auto;
  margin-bottom: 1em;
  width: 100%;
}

/* ==========================================================================
   Stili per i Postbox (Card dei Piani)
   ========================================================================== */
.qrcdr-admin-ui .postbox.qrcdr-plan-box {
  background: #fff;
  border: 1px solid #e0e5f0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1em;
  position: relative;
}

.qrcdr-admin-ui .postbox.qrcdr-plan-box .hndle {
  background: #f8f9fa;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: 1px solid #e0e5f0;
  cursor: pointer;
  margin: 0;
  display: flex;
  align-items: center;
}

.qrcdr-admin-ui .postbox.qrcdr-plan-box .handlediv {
  margin-left: auto;
  margin-right: 0;
}

.qrcdr-admin-ui .postbox.qrcdr-plan-box .handlediv:focus {
  box-shadow: none;
}

.qrcdr-admin-ui .postbox.qrcdr-plan-box .inside {
  padding: 20px;
  margin: 0;
}

.qrcdr-admin-ui .postbox.qrcdr-plan-box.closed > .hndle {
  border-bottom: none;
  border-radius: 8px;
}

.qrcdr-admin-ui .qrcdr-plan-footer {
  border-top: 1px solid #e0e5f0;
  padding: 15px 20px;
  margin: 20px -20px -20px;
  text-align: right;
  background: #f8f9fa;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* ==========================================================================
   Stili per Form e Input Fields
   ========================================================================== */
.qrcdr-admin-ui .form-table th {
  font-weight: 500;
}

.qrcdr-admin-ui input[type=text],
.qrcdr-admin-ui input[type=url],
.qrcdr-admin-ui input[type=number],
.qrcdr-admin-ui input[type=password],
.qrcdr-admin-ui input[type=search],
.qrcdr-admin-ui textarea,
.qrcdr-admin-ui select {
  border-radius: 4px !important;
  border: 1px solid #c8d0dc !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.qrcdr-admin-ui select {
  padding-right: 2em;
}

.qrcdr-admin-ui input[type=text]:focus,
.qrcdr-admin-ui input[type=url]:focus,
.qrcdr-admin-ui input[type=number]:focus,
.qrcdr-admin-ui input[type=password]:focus,
.qrcdr-admin-ui input[type=search]:focus,
.qrcdr-admin-ui textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px #2563eb !important;
  outline: none !important;
}

/* ==========================================================================
   Stili Generici per i Pulsanti WordPress
   ========================================================================== */
.qrcdr-admin-ui .button {
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  height: auto;
  box-shadow: none;
  text-shadow: none;
  transition: all 0.2s ease;
}

/* Stile per i Link di Cancellazione (Rosso) */
.qrcdr-admin-ui .button-link-delete {
  color: #d63638;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
}

.qrcdr-admin-ui .button-link-delete:hover {
  color: #b91c1c;
  text-decoration: underline;
}

/* ==========================================================================
   Stili Vari (Placeholder, Status, etc.)
   ========================================================================== */
.qrcdr-admin-ui .qrcdr-plan-placeholder {
  background-color: #f0f8ff;
  border: 2px dashed #a0c4ff;
  border-radius: 8px;
  height: 100px;
  margin-bottom: 25px;
}

.qrcdr-admin-ui .postbox.qrcdr-plan-box .toggle-indicator::before {
  /* Proprietà FONDAMENTALI per visualizzare l'icona */
  font-family: "Dashicons";
  content: "\f142"; /* Icona "freccia su" per lo stato aperto 
/*content: '\f460'; /* Icona "freccia su" per lo stato aperto */
  font-size: 20px;
  line-height: 1;
  font-weight: normal;
  font-style: normal;
  display: block;
  left: 0;
  position: relative;
  color: #50575e;
  transition: transform 0.2s ease-in-out;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.qrcdr-admin-ui .qrcdr-admin-collapse-title {
  margin: 0;
}

/* 5. Cambia l'icona quando il pannello è chiuso */
.qrcdr-admin-ui .postbox.qrcdr-plan-box.closed .toggle-indicator::before {
  content: "\f140"; /* Icona "freccia giù" 
/*content: '\f132';*/
}

.qrcdr-status-success {
  color: #00CE51;
}

.qrcdr-status-error {
  color: #d63638;
}

/* ==========================================================================
   Stile per il Drag & Drop Handle
   ========================================================================== */
.qrcdr-drag-handle {
  width: 30px;
  height: 30px;
  font-size: 24px; /* Dimensione dell'icona */
  line-height: 30px; /* Centra l'icona verticalmente */
  text-align: center;
  color: #9ca3af; /* Colore grigio discreto */
  cursor: grab;
  transition: color 0.2s ease-in-out;
}

.qrcdr-drag-handle:hover {
  color: #111827; /* Colore più scuro al passaggio del mouse */
}

/* Quando si sta trascinando, il cursore cambia */
.ui-sortable-helper .qrcdr-drag-handle {
  cursor: grabbing;
}

.qrcdr-pro-teaser-card {
  background: #fff;
  border: 1px solid #ccd0d4;
  border-left: 4px solid #f0b90b; /* Colore "Gold" per la versione Pro */
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin: 20px 0;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  max-width: 1000px;
}

.qrcdr-pro-teaser-content {
  flex: 1;
  padding-right: 40px;
}

.qrcdr-badge {
  background: #FFC705;
  color: #000;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.qrcdr-pro-teaser-content h2 {
  margin: 15px 0 10px 0;
  font-size: 24px;
  color: #1d2327;
}

.qrcdr-pro-teaser-content p {
  font-size: 15px;
  color: #50575e;
}

.qrcdr-pro-features-list {
  margin: 25px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.qrcdr-pro-features-list li {
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-size: 14px;
  color: #3c434a;
}

.qrcdr-pro-features-list li .dashicons {
  margin-right: 10px;
  color: #f0b90b;
  font-size: 20px;
}

.qrcdr-pro-cta-wrapper {
  margin-top: 30px;
}

.qrcdr-pro-cta-wrapper .button-hero {
  background: #f0b90b !important;
  border-color: #d3a309 !important;
  color: #000 !important;
  text-shadow: none !important;
  font-weight: 600 !important;
  padding: 0 30px !important;
}

.qrcdr-pro-cta-wrapper .button-hero:hover {
  background: #d3a309 !important;
}

.qrcdr-guarantee {
  font-size: 12px !important;
  color: #8c8f94 !important;
  margin-top: 15px !important;
  display: flex;
  align-items: center;
}

.qrcdr-guarantee .dashicons {
  font-size: 16px;
  margin-right: 5px;
}

.qrcdr-pro-teaser-visual .dashicons-awards {
  font-size: 120px;
  width: 120px;
  height: 120px;
  color: #f0f0f1;
}

.qrcdr-sidebar {
  max-width: 40%;
  padding: 1rem;
  box-sizing: border-box;
  min-width: 400px;
}

/* Lista Link */
.qrcdr-sidebar-links {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.qrcdr-sidebar-links a {
  text-decoration: none;
}

.qrcdr-sidebar-links li {
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid #f0f0f1;
  font-size: 13px;
  font-weight: bold;
  background: #fff;
  border-radius: 4px;
}

.qrcdr-sidebar-links li > a,
.qrcdr-sidebar-links li > span {
  display: block;
  padding: 1rem;
  text-decoration: none;
  width: 100%;
}

.qrcdr-sidebar-links li > a:focus {
  outline: none;
  box-shadow: none;
}

.qrcdr-sidebar-links li:last-child {
  border-bottom: none;
}

.qrcdr-sidebar-links li .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Stato Disabilitato (Link Bloccati) */
.link-disabled {
  opacity: 0.6;
  color: #8c8f94;
  cursor: not-allowed;
  position: relative;
}

.link-disabled small {
  background: #f0f0f1;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 10px;
  margin-left: auto;
}

.link-disabled .dashicons {
  color: #c3c4c7 !important; /* Icone grigie se bloccato */
}

/* Sezione CTA Upsell */
.qrcdr-upsell-promo {
  background: #111827;
  color: #D1D5DB;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.qrcdr-upsell-promo h1, .qrcdr-upsell-promo h2, .qrcdr-upsell-promo h3 {
  color: #fff;
  line-height: 1.2;
}

.marker-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.marker-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.6em; /* Posizionamento rispetto al testo */
  width: 100%;
  height: 0.8em; /* Spessore del tratto */
  z-index: 0; /* Dietro al testo */
  /* L'anima dell'effetto: un SVG con una curva leggera e irregolare */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" preserveAspectRatio="none"><path d="M0 15 Q 50 5, 100 15" stroke="rgb(50, 225, 200)" stroke-width="8" fill="transparent" stroke-linecap="round" /></svg>');
  background-repeat: no-repeat;
  background-size: 100% 100%; /* Partenza per l'animazione */
  background-position: left bottom;
}

.qrcdr-upsell-promo h3 {
  font-size: 1.1em;
}

.qrcdr-upsell-promo p {
  font-size: 1rem;
}

.qrcdr-upsell-promo a {
  text-decoration: none;
}

.qrcdr-upsell-cta {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px dashed #d2d2d2;
  text-align: center;
}

.qrcdr-upsell-cta p {
  font-size: 12px;
  color: #646970;
  margin-bottom: 15px;
}

.qrcdr-upsell-cta .button-hero {
  width: 100%;
  background: #36EFE5;
  border-color: #AFFFFB !important;
  color: #111827 !important;
  font-weight: 600 !important;
  border-radius: 4px;
  height: auto;
  font-size: 14px;
  line-height: 3.28571429;
  min-height: 48px;
  padding: 0 36px;
  box-shadow: none;
  text-shadow: none;
  transition: background 0.2s linear;
  display: inline-block;
  box-sizing: border-box;
  text-decoration: none;
}

.qrcdr-upsell-cta .button-hero:hover {
  background: #AFFFFB !important;
  border-color: #AFFFFB !important;
}

.qrcdr-pro-main-block {
  max-width: 60%;
  width: 100%;
}

.qrcdr-range-value {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .qrcdr-pro-teaser-card {
    flex-direction: column;
    text-align: center;
  }
  .qrcdr-pro-teaser-content {
    padding-right: 0;
  }
  .qrcdr-pro-features-list {
    grid-template-columns: 1fr;
  }
  .qrcdr-pro-teaser-visual {
    display: none;
  }
  .qrcdr-pro-main-block {
    max-width: unset;
    width: 100%;
  }
  .qrcdr-sidebar {
    max-width: unset;
  }
}
.qr-modal-promo .qr-modal-col {
  flex-basis: 100%;
  margin-top: auto;
}

@media (min-width: 768px) {
  .qr-modal-promo .qr-modal-col {
    flex-basis: 0;
    flex-grow: 1;
  }
}
.qrcdr-custom-modal-content {
  width: 100%;
  max-width: 900px;
}

.qr-modal-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.qr-modal-promo img {
  max-width: 100%;
  height: auto;
  border-top-left-radius: 6px;
  display: block;
  box-shadow: -2px -2px 6px 0px rgba(0, 0, 0, 0.2);
}

.qr-modal-promo .qr-modal-col.qr-col-stretch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 0;
}

.qr-modal-promo .qr-col-stretch img {
  border-top-right-radius: 6px;
}

.qr-margin-b {
  margin-bottom: 1rem;
}

.qrcdr-modal-master-wrapper {
  position: relative;
  min-height: 200px;
}

.qrcdr-custom-modal-content {
  padding: 10px 40px;
}

.qrcdr-modal-nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.qrcdr-modal-nav-overlay .nav-button {
  pointer-events: auto;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
}
