/* Chord Identifier — embed scoped styles (WordPress / Elementor) */
/* Escopo estrito: não afeta cabeçalho, rodapé nem outros widgets Elementor */
#ci-chordfinder-root.ci-chordfinder-embed {
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 auto;
  isolation: isolate;
  font-size: 16px;
  line-height: 1.45;
  color: #333;
}
#ci-chordfinder-root.ci-chordfinder-embed *,
#ci-chordfinder-root.ci-chordfinder-embed *::before,
#ci-chordfinder-root.ci-chordfinder-embed *::after {
  box-sizing: border-box;
}
#ci-chordfinder-root .ci-embed-intro {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
/* Botões/inputs dos modais (substituem Bootstrap só dentro do root) */
#ci-chordfinder-root .ci-wp-btn {
  display: inline-block;
  margin-bottom: 0;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 6px;
  user-select: none;
  font-family: inherit;
}
#ci-chordfinder-root .ci-wp-btn-primary {
  color: #fff;
  background: #337ab7;
  border-color: #2e6da4;
}
#ci-chordfinder-root .ci-wp-btn-primary:hover { background: #286090; border-color: #204d74; color: #fff; }
#ci-chordfinder-root .ci-wp-btn-success {
  color: #fff;
  background: #5cb85c;
  border-color: #4cae4c;
}
#ci-chordfinder-root .ci-wp-btn-success:hover { background: #449d44; color: #fff; }
#ci-chordfinder-root .ci-wp-btn-danger {
  color: #fff;
  background: #d9534f;
  border-color: #d43f3a;
}
#ci-chordfinder-root .ci-wp-btn-danger:hover { background: #c9302c; color: #fff; }
#ci-chordfinder-root .ci-wp-btn-danger:disabled,
#ci-chordfinder-root .ci-wp-btn-success:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
#ci-chordfinder-root .ci-wp-btn-default {
  color: #333;
  background: #fff;
  border-color: #ccc;
}
#ci-chordfinder-root .ci-wp-btn-default:hover { background: #e6e6e6; border-color: #adadad; }
#ci-chordfinder-root .ci-wp-form-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.08);
  font-family: inherit;
}
#ci-chordfinder-root .ci-modal { display: none; position: fixed; z-index: 500100; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background: rgba(0,0,0,0.45); align-items: center; justify-content: center; }
#ci-chordfinder-root .ci-modal.ci-modal-open { display: flex; }
#ci-chordfinder-root .ci-modal-dialog { background: #faf8f6; border-radius: 10px; max-width: 520px; width: 92%; box-shadow: 0 8px 32px rgba(0,0,0,0.2); border: 1px solid #d4c4bc; }
#ci-chordfinder-root .ci-modal-header { padding: 14px 18px; border-bottom: 1px solid #e5d7d4; font-weight: 600; display: flex; justify-content: space-between; align-items: center; color: #543b1b; }
#ci-chordfinder-root .ci-modal-body { padding: 18px; }
#ci-chordfinder-root .ci-modal-close { background: none; border: none; font-size: 22px; cursor: pointer; line-height: 1; color: #666; }
#ci-chordfinder-root .ci-modal-close:hover { color: #000; }
#ci-chordfinder-root .ci-source-bar { margin: 12px 15px; text-align: center; }
#ci-chordfinder-root .ci-source-btn {
  margin: 6px 4px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #d6d6d6;
  background: linear-gradient(180deg, #fcfcfc 0%, #ebebeb 55%, #e4e4e4 100%);
  color: #3a3a3a;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
#ci-chordfinder-root .ci-source-btn:hover {
  background: linear-gradient(180deg, #fafafa 0%, #e6e6e6 55%, #dedede 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  color: #222;
}
#ci-chordfinder-root .ci-source-btn:active {
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}
#ci-chordfinder-root .ci-source-btn .fas, #ci-chordfinder-root .ci-source-btn .fab { margin-right: 8px; }
#ci-chordfinder-root .ci-src-ic-upload { color: #5c6bc0; }
#ci-chordfinder-root .ci-src-ic-youtube { color: #e53935; }
#ci-chordfinder-root .ci-src-ic-mic { color: #c2185b; }
#ci-chordfinder-root .ci-src-ic-link { color: #00897b; }
#ci-chordfinder-root .ci-src-ic-history { color: #7b1fa2; }
#ci-chordfinder-root .ci-src-ic-export { color: #e65100; }
#ci-chordfinder-root .ci-modal-dialog-export { max-width: 560px; }
#ci-chordfinder-root .ci-export-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}
#ci-chordfinder-root .ci-export-modal-buttons .modern-btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: none;
  margin: 0;
}
#ci-chordfinder-root .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
#ci-chordfinder-root .ci-chord-display { text-align: center; margin: 8px auto 16px; max-width: 640px; padding: 12px; background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%); border-radius: 12px; border: 1px solid #e0dcd8; }
#ci-chordfinder-root .ci-chord-label { font-size: 18px; font-weight: 600; color: #543b1b; margin-bottom: 8px; min-height: 1.2em; }
#ci-chordfinder-root .ci-chord-img { max-width: 100%; height: auto; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12)); }
#ci-chordfinder-root .ci-chord-img.ci-chord-img--free-blur {
  filter: blur(8px) drop-shadow(0 2px 6px rgba(0,0,0,0.08));
  user-select: none;
  -webkit-user-drag: none;
}
#ci-chordfinder-root .ci-chord-diagram-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  margin-top: 6px;
}
#ci-chordfinder-root .ci-chord-img-wrap {
  flex: 0 0 auto;
  max-width: min(100%, 240px);
}
#ci-chordfinder-root .ci-chord-diagram-reveal-btn {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6d4c41 0%, #8d6e63 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-family: inherit;
  line-height: 1.3;
  max-width: 140px;
  text-align: center;
}
#ci-chordfinder-root .ci-chord-diagram-reveal-btn:hover,
#ci-chordfinder-root .ci-chord-diagram-reveal-btn:focus {
  background: linear-gradient(135deg, #5d4037 0%, #795548 100%);
  color: #fff;
  outline: none;
}
@media (max-width: 480px) {
  #ci-chordfinder-root .ci-chord-diagram-row { flex-direction: column; }
  #ci-chordfinder-root .ci-chord-diagram-reveal-btn { max-width: 100%; width: 100%; }
}
#ci-chordfinder-root .btn-unlock-chords-modal {
  display: inline-block;
  font-size: 22px;
  color: white;
  background-color: #F57C00;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
#ci-chordfinder-root .btn-unlock-chords-modal:hover,
#ci-chordfinder-root .btn-unlock-chords-modal:focus {
  background-color: #e65100;
  color: #fff;
  outline: none;
}
#ci-chordfinder-root .pro-benefits-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 500110;
}
#ci-chordfinder-root .pro-benefits-overlay[hidden] { display: none !important; }
#ci-chordfinder-root .pro-benefits-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 500120;
  width: calc(100% - 32px);
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  color: #222;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid #eaeaea;
  padding: 28px 24px 24px;
  text-align: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
#ci-chordfinder-root .pro-benefits-modal[hidden] { display: none !important; }
#ci-chordfinder-root .pro-benefits-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 0.85;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
}
#ci-chordfinder-root .pro-benefits-close:hover { color: #333; }
#ci-chordfinder-root .pro-benefits-icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
#ci-chordfinder-root .pro-benefits-heading {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
}
#ci-chordfinder-root .pro-benefits-sub {
  margin: 0 0 18px 0;
  font-size: 15px;
  color: #555;
  font-weight: 600;
}
#ci-chordfinder-root .ci-export-upgrade-lead {
  margin: 0 0 16px;
  font-size: 14px;
  color: #555;
  text-align: left;
  line-height: 1.45;
}
#ci-chordfinder-root .pro-benefits-list {
  list-style: none;
  margin: 0 0 22px 0;
  padding: 0;
  text-align: left;
}
#ci-chordfinder-root .pro-benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #333;
  line-height: 1.35;
}
#ci-chordfinder-root .pro-benefits-list li:last-child { border-bottom: none; }
#ci-chordfinder-root .pro-benefits-ico {
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  font-size: 18px;
}
#ci-chordfinder-root .pro-benefits-infinity {
  color: #7b2cbf;
  font-weight: bold;
  font-size: 22px;
  line-height: 1;
}
#ci-chordfinder-root .pro-benefits-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: #2e7d32;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: bold;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}
#ci-chordfinder-root .pro-benefits-cta:hover {
  background-color: #256628;
  color: #ffffff !important;
  transform: translateY(-2px);
}
/* Trava scroll da página ao abrir modal PRO (classe aplicada no body pelo script) */
body.ci-chordfinder-scroll-lock { overflow: hidden !important; }
@media (max-width: 600px) {
  #ci-chordfinder-root .pro-benefits-modal { padding: 24px 18px 20px; }
  #ci-chordfinder-root .btn-unlock-chords-modal { font-size: 18px; padding: 12px 20px; width: 100%; max-width: 100%; }
}
#ci-chordfinder-root .button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

#ci-chordfinder-root .export-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

#ci-chordfinder-root .modern-btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    #ci-chordfinder-root .modern-btn {
        min-width: 150px;
        font-size: 12px;
        padding: 10px 15px;
    }
}

#ci-chordfinder-root .modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#ci-chordfinder-root .modern-btn.pdf {
    background: linear-gradient(45deg, #ff9a44, #fc6076);
    color: white;
}

#ci-chordfinder-root .modern-btn.txt {
    background: linear-gradient(45deg, #2196F3, #4CAF50);
    color: white;
}

#ci-chordfinder-root .modern-btn.chords {
    background: linear-gradient(45deg, #6B48FF, #8C4FFF);
    color: white;
}

#ci-chordfinder-root .modern-btn.group {
    background: linear-gradient(45deg, #20B2AA, #48D1CC);
    color: white;
}

#ci-chordfinder-root .modern-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#ci-chordfinder-root .modern-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

#ci-chordfinder-root .export-notice {
    color: #666;
    font-size: 15px;
    text-align: center;
    margin: 10px 0;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
    font-weight: 500;
}

#ci-chordfinder-root form.control-buttons.ci-control-toolbar {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 960px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 12px;
    box-sizing: border-box;
    text-align: center;
}

#ci-chordfinder-root .ci-playback-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

#ci-chordfinder-root .control-buttons .modern-btn {
    flex: 0 1 auto;
    min-width: 100px;
    max-width: 130px;
    padding: 10px 20px;
    font-size: 13px;
}

#ci-chordfinder-root .ci-playback-buttons .modern-btn {
    margin: 0 !important;
    min-width: 88px;
    max-width: 118px;
    padding: 10px 14px;
}

@media (max-width: 768px) {
    #ci-chordfinder-root form.control-buttons.ci-control-toolbar {
        padding: 0 8px;
        gap: 10px;
    }
    
    #ci-chordfinder-root .control-buttons .modern-btn {
        min-width: 90px;
        max-width: 110px;
        font-size: 12px;
        padding: 8px 12px;
    }

    #ci-chordfinder-root .ci-playback-buttons {
        gap: 3px;
        justify-content: center;
    }

    #ci-chordfinder-root .ci-playback-buttons .modern-btn {
        min-width: 80px;
        max-width: 100px;
        padding: 8px 10px;
    }
}

#ci-chordfinder-root .modern-btn.play {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

#ci-chordfinder-root .modern-btn.stop {
    background: linear-gradient(45deg, #f44336, #e53935);
    color: white;
}

#ci-chordfinder-root .modern-btn.repeat {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
}

#ci-chordfinder-root .modern-btn.clear {
    background: linear-gradient(45deg, #9E9E9E, #757575);
    color: white;
}

#ci-chordfinder-root .modern-btn.play:hover {
    background: linear-gradient(45deg, #45a049, #388E3C);
}

#ci-chordfinder-root .modern-btn.stop:hover {
    background: linear-gradient(45deg, #e53935, #d32f2f);
}

#ci-chordfinder-root .modern-btn.repeat:hover {
    background: linear-gradient(45deg, #1976D2, #1565C0);
}

#ci-chordfinder-root .modern-btn.clear:hover {
    background: linear-gradient(45deg, #757575, #616161);
}
