/* --- Defensive hardening ------------------------------------------------- */
/* The signature preview is fully isolated inside an <iframe>, so no external
   CSS can touch it. These rules protect the surrounding plugin chrome (form,
   buttons, setup guide) from aggressive theme / Elementor / plugin styles —
   re-asserting our intended look with !important so forced overrides can't win.
   The signature's own colors live inline + in the iframe; #1B2A4A is the navy
   brand token (keep in sync with IRON_ESG_NAVY in PHP). */
.iron-esg,
.iron-esg * {
    box-sizing: border-box;
}
.iron-esg input[type="text"] {
    width: 100% !important;
    border: 1px solid #999 !important;
    padding: 0.5rem !important;
    margin: 0 !important;
    background: #fff !important;
    color: #1a1a1a !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
}
.iron-esg button {
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    width: auto !important;
    min-width: 0 !important;
    line-height: normal !important;
}
.iron-esg .iron-esg-rich-copy {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #f3f4f6 !important;
    color: #555 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}
.iron-esg .iron-esg-rich-copy:hover {
    background: #e9ecef !important;
    color: #1a1a1a !important;
    border-color: #c4c9cf !important;
}
.iron-esg .iron-esg-rich-copy svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    flex: 0 0 auto !important;
}
.iron-esg .iron-esg-preview {
    border: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* --- Setup guide (div-based; tables are reserved for the signature only) - */
.iron-esg-guide {
    margin: 4rem 0 0;
    background: #ffffff;
    border-radius: 8px;
}
.iron-esg-guide-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a1a;
}
.iron-esg-guide-sub {
    font-size: 14px;
    margin: 0 0 20px;
    color: #1a1a1a;
}
.iron-esg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 2px solid #1B2A4A;
    padding-bottom: 0;
    margin-bottom: 40px;
}
.iron-esg-tab {
    padding: 10px 16px !important;
    border: 0 none !important;
    background: #999 !important;
    color: #fff !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    font-size: 14px !important;
}
.iron-esg-tab.is-active {
    background: #1B2A4A !important;
}
.iron-esg-panel {
    display: none;
}
.iron-esg-panel.is-active {
    display: block;
}
.iron-esg-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 40px 0 15px;
    color: #1a1a1a;
}
.iron-esg-step-label {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a1a;
}
.iron-esg-step {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px;
    color: #1a1a1a;
}
.iron-esg-note {
    font-size: 13px;
    line-height: 1.5;
    color: #777;
    margin: 5px 0 0;
}
.iron-esg-kbd {
    display: inline-block;
    background: #eee;
    padding: 8px;
    font-family: monospace;
}

.iron-esg table {
    margin: 0;
}
.iron-esg table td {
    border: 0 none;
    padding: 0;
    background: none !important;
}
/* Inline code chips (e.g. ".htm"). The !important background neutralizes
   themes that color <code> with their own (e.g. cyan) highlight. */
.iron-esg-step code {
    font-size: 87.5%;
    color: #c7254e !important;
    background: #f1f1f1 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    word-wrap: break-word;
}
.iron-esg-code-box {
    background: #f8f9fa !important;
    border-radius: 10px;
    overflow: hidden;
    font-family: monospace;
    border: 1px solid #e1e4e8;
}
/* The HTML source box: keep it neutral; override any theme pre/code coloring. */
.iron-esg-code-box pre {
    background: #f8f9fa !important;
}
.iron-esg-code-box code {
    color: #000 !important;
    background: transparent !important;
    padding: 0 !important;
}
.iron-esg-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eef1f4 !important;
    padding: 8px 12px;
    font-size: 14px;
}
.iron-esg-code-label {
    font-weight: 600;
    color: #333;
}
.iron-esg-copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}
.iron-esg-copy-btn:hover {
    color: #1B2A4A;
}
.iron-esg-code-box pre {
    margin: 0;
    padding: 12px;
    font-size: 14px;
    overflow-x: auto;
}
#iron-esg-clear-button:hover {
    color: #dc3545 !important;
}
