/**
 * BTM Taxonomy Manager Settings Page Styles
 */

#wpcontent {
    position: relative;
}

/* Drop WordPress's default .wrap margins (10px 20px 0 2px) so the colored header
   banner is flush to the top/left/right. The tabs + content stay centered via
   their own max-width:1040px; margin:0 auto. */
.wrap {
    visibility: hidden;
    margin: 0;
}

.wrap>h1 {
    display: none;
}

/* Settings Container */
.btm-settings-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    max-width: 1200px;
}

.btm-settings-main {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.btm-settings-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Tabs Navigation */
.btm-settings-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

.btm-settings-tabs a {
    padding: 10px 20px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-bottom: none;
    text-decoration: none;
    color: #50575e;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btm-settings-tabs a:hover {
    background: #fff;
    color: #2271b1;
}

.btm-settings-tabs a.active {
    background: #fff;
    color: #000;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

/* Settings Panels */
.btm-settings-panel {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 20px;
    margin-bottom: 20px;
}

.btm-settings-panel h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Form Fields */
.btm-form-field {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f1;
}

.btm-form-field:last-child {
    border-bottom: none;
}

.btm-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.btm-form-field input[type="text"],
.btm-form-field input[type="number"],
.btm-form-field input[type="password"],
.btm-form-field select,
.btm-form-field textarea {
    width: 100%;
    max-width: 400px;
}

.btm-form-field textarea {
    min-height: 100px;
}

/* Checkbox Groups */
.btm-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.btm-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

/* Color Scheme Section */
.btm-color-scheme-selector {
    margin-top: 15px;
}

.btm-color-scheme-selector fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.custom-colors {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.color-picker-field {
    margin-bottom: 15px;
}

.color-picker-field:last-child {
    margin-bottom: 0;
}

.wp-picker-container {
    display: inline-block;
}

.wp-picker-container .wp-color-result {
    margin-bottom: 0;
}

/* API Key Section */
.btm-api-key-field {
    position: relative;
}

.btm-api-key-field input[type="password"] {
    padding-right: 100px;
}

#test-api-key {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Sidebar Help Panel */
.btm-settings-help {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 15px;
}

.btm-settings-help h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.btm-settings-help ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.btm-settings-help li {
    margin-bottom: 8px;
}

.btm-settings-help a {
    text-decoration: none;
}

/* Tooltips */
.btm-tooltip {
    position: absolute;
    background: #23282d;
    color: #fff;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 200px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btm-tooltip:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #23282d transparent transparent;
}

/* Notices */
.btm-notice {
    margin: 15px 0;
}

/* Loading States */
.updating-message:before {
    display: inline-block;
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background: url(../images/spinner.gif) no-repeat;
    background-size: 20px;
    vertical-align: middle;
    visibility: visible;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .btm-settings-container {
        flex-direction: column;
    }

    .btm-settings-sidebar {
        width: 100%;
    }

    .btm-checkbox-group {
        grid-template-columns: 1fr;
    }

    .btm-settings-tabs {
        flex-wrap: wrap;
    }

    .btm-settings-tabs a {
        flex: 1 1 auto;
        text-align: center;
    }

    .btm-form-field input[type="text"],
    .btm-form-field input[type="number"],
    .btm-form-field input[type="password"],
    .btm-form-field select,
    .btm-form-field textarea {
        max-width: 100%;
    }
}

/* RTL Support */
.rtl .btm-settings-sidebar {
    margin-right: 20px;
    margin-left: 0;
}

.rtl .btm-checkbox-group label {
    padding-right: 25px;
    padding-left: 0;
}

.rtl .btm-tooltip:after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

/* Accessibility */
.btm-settings-container :focus {
    box-shadow: 0 0 0 1px #2271b1;
    outline: 1px solid transparent;
}

.btm-settings-container .button:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #2271b1;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.admin-color-modern {
        --btm-bg-color: #1e1e1e;
        --btm-text-color: #c7c7c7;
        --btm-border-color: #3f3f3f;
    }

    body.admin-color-modern .btm-settings-panel,
    body.admin-color-modern .btm-settings-help {
        background: var(--btm-bg-color);
        border-color: var(--btm-border-color);
        color: var(--btm-text-color);
    }

    body.admin-color-modern .custom-colors {
        background: rgba(0, 0, 0, 0.2);
    }
}

/* Animation Effects */
.btm-settings-panel {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Indicators */
.btm-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.btm-status-active {
    background-color: #00a32a;
}

.btm-status-inactive {
    background-color: #cc1818;
}

.btm-status-warning {
    background-color: #dba617;
}

/* Settings Page Tabs — left-aligned bar that connects to the content container.
   Tab text starts at ~25px (8px wrapper pad + 16px tab pad + 1px border) to line
   up with the header title and the form content (both at 24px). */
.nav-tab-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 8px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    text-align: left;
    box-sizing: border-box;
}

.nav-tab {
    float: none;
    display: inline-block;
    border: none;
    background: transparent;
    margin: 0;
    padding: 18px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #50575e;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-tab:hover {
    color: #1d2327;
    background: rgba(0, 0, 0, 0.03);
}

.nav-tab:focus {
    box-shadow: none;
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

.nav-tab-active,
.nav-tab-active:hover,
.nav-tab-active:focus {
    margin-bottom: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #2271b1;
    color: #1d2327;
}

/* Content container connects directly to the tab bar (no gap) */
#btm-settings-form {
    max-width: 1040px;
    margin: 0 auto 30px;
    padding: 24px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

/* Colored header banner (pattern image + plugin title) */
.btm-header-container {
    /* Bleed ~20px to the left so the banner sits flush against the admin menu.
       #wpcontent is offset by the menu width (160px); when the actual menu is a
       little narrower this closes the gap. On a standard-width menu the extra
       slice simply tucks under the menu (the right edge is unchanged). */
    width: calc(100% + 20px);
    margin-left: -20px;
    height: 90px;
    margin-bottom: 22px;
    background-repeat: repeat-x;
    background-size: contain;
    overflow: hidden;
    display: flex;
    align-items: center;
    animation: btmHeaderScroll 200s linear infinite;
}

/* On small screens the admin menu collapses to an overlay (no left offset), so
   reset the bleed to avoid a horizontal overflow. */
@media screen and (max-width: 782px) {
    .btm-header-container {
        width: 100%;
        margin-left: 0;
    }
}

@keyframes btmHeaderScroll {
    0% { background-position: 0 0; }
    100% { background-position: 100% 0; }
}

.btm-header-inner {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.btm-header-title {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Settings Content */
.btm-settings-content {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
    min-height: 400px;
}

.btm-tab-description {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.btm-settings-section-content {
    background-color:#fff !important;

}

.form-table {
    width:95%;
    margin-left:auto;
    margin-right:auto;
    margin-top: 0px;
    background-color:#fff !important;
}

.form-table tbody {
    background-color:#fff !important;
    padding:15px;
}

p.submit input {
    padding-left: 15px;
}

/* Settings Form */
.form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
}

.form-table td {
    padding: 20px 10px;
}

/* Field Errors */
.btm-field-error {
    color: #d63638;
    margin-top: 5px;
    font-size: 12px;
}

input.btm-error,
select.btm-error,
textarea.btm-error {
    border-color: #d63638;
}

/* Notices */
.notice {
    margin: 0 0 20px 0;
}

/* Authentication Tab */
.github-auth-section {
    margin-top: 20px;
    padding: 20px;
    background: #f0f6fc;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #2271b1;
}

.github-auth-section h3 {
    margin-top: 0;
    color: #1d2327;
}

.github-auth-status {
    margin: 15px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #dcdcde;
}

.github-auth-actions {
    margin-top: 15px;
}

/* Advanced Tab */
.advanced-warning {
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #fcf9e8;
    border-left: 4px solid #dba617;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .form-table th {
        width: 100%;
        padding: 10px 0;
    }
    
    .form-table td {
        padding: 10px 0;
    }
    
    .nav-tab {
        margin: 0 0 -1px 0;
        padding: 6px 10px;
    }
}

/* Tab Section Visibility */

.btm-settings-section .description {
    font-size: 14px;
    margin-bottom: 20px;
}

.form-table th {
    width: 200px;
}

.form-table .small-text {
    width: 80px;
}

.btm-field-error {
    color: #d63638;
    margin-top: 5px;
}

/* Auth Notice */
.btm-auth-notice {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 4rem 2rem 4rem 2rem;
    text-align: center;
}

.btm-auth-notice h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #1d2327;
}

.btm-auth-notice p {
    font-size: 1.1rem;
    color: #50575e;
    margin-bottom: 2rem;
}

/* GitHub Button */
.btm-github-auth {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto !important;
    gap: 0.75rem;
    height: 3.5rem !important;
    font-size: 1.1rem !important;
    transition: all 0.2s ease-in-out !important;
}

.btm-github-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btm-github-logo {
    width: 24px;
    height: 24px;
}

/* Dark mode support */
.btm-github-auth.button-primary .btm-github-logo {
    fill: currentColor;
}

/* Welcome Dashboard Styles */
.btm-welcome-dashboard {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 24px;
}

.btm-user-profile {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.btm-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btm-user-info {
    flex: 1;
}

.btm-user-info h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

.btm-company {
    margin: 0 0 16px;
    color: #50575e;
    font-size: 14px;
}

.btm-github-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.btm-github-stats span {
    color: #50575e;
    font-size: 13px;
}

.btm-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btm-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btm-action-buttons .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    height: auto;
    min-height: 36px;
    line-height: 1.4;
}

.btm-action-buttons .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.btm-action-buttons .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.btm-action-buttons .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

#btm-delete-connection {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #57606a;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid #d0d7de;
}

#btm-delete-connection:hover {
    color: #cf222e;
    border-color: #cf222e;
    background: #ffebe9;
    text-decoration: none;
}

#btm-delete-connection .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

/* Sponsor Card */
.btm-sponsor-card {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.btm-sponsor-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #24292f;
}

.btm-sponsor-card p {
    margin: 0 0 20px;
    color: #57606a;
    font-size: 14px;
    line-height: 1.5;
}

/* Action Cards */
.btm-action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.btm-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 24px;
    transition: all 0.2s ease-in-out;
    color: #24292f;
}

.btm-action-card:hover {
    background: #f6f8fa;
    border-color: #8250df;
    color: #24292f;
    transform: translateY(-2px);
}

.btm-action-card .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.btm-action-title {
    font-size: 14px;
    font-weight: 500;
}

/* Sponsor Button */
.button-sponsor {
    background: #8250df !important;
    border-color: #6e40c9 !important;
    color: #fff !important;
    padding: 8px 24px !important;
    height: auto !important;
    font-size: 16px !important;
    line-height: 24px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.button-sponsor:hover {
    background: #6e40c9 !important;
    border-color: #5a32a3 !important;
    transform: translateY(-1px);
}

.button-sponsor .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

/* Auth Actions */
.btm-auth-actions {
    text-align: center;
    margin: 24px 0;
    padding: 16px;
    border-top: 1px solid #d0d7de;
}

#btm-delete-connection {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #57606a;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid #d0d7de;
}

#btm-delete-connection:hover {
    color: #cf222e;
    border-color: #cf222e;
    background: #ffebe9;
    text-decoration: none;
}

#btm-delete-connection .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

/* User Profile */
.btm-user-profile {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.btm-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.btm-user-info {
    flex: 1;
}

.btm-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.btm-user-header h2 {
    margin: 0;
    font-size: 20px;
    color: #24292f;
}

.btm-sponsor-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.btm-sponsor-active {
    background-color: #238636;
    color: #fff;
}

.btm-company {
    margin: 0;
    color: #57606a;
    font-size: 14px;
}

/* Changelog */
.btm-changelog {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 24px;
}

.btm-changelog h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #24292f;
}

.btm-changelog-content {
    color: #57606a;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .btm-action-cards {
        grid-template-columns: 1fr;
    }
    
    .btm-user-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .btm-user-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Changelog Styles */
.btm-release {
    margin-bottom: 24px;
}

.btm-release:last-child {
    margin-bottom: 0;
}

.btm-release-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btm-release-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dcdcde;
}

.btm-change-item {
    padding: 4px 0 4px 16px;
    position: relative;
    color: #50575e;
}

.btm-change-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2271b1;
}

.btm-change-spacer {
    height: 8px;
}

.btm-changelog {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
}

.btm-changelog h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #1d2327;
}

.btm-changelog-content {
    font-size: 14px;
    line-height: 1.6;
    color: #50575e;
}

.btm-loading {
    color: #666;
    font-style: italic;
}

.btm-error {
    color: #d63638;
    font-style: italic;
}

/* Sponsor Status and CTA */
.btm-user-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    width: 100%;
}

.btm-user-header h2 {
    margin: 0;
    font-size: 20px;
    color: #24292f;
}

.btm-sponsor-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
}

.btm-sponsor-active {
    background: #2da44e;
    color: #fff;
}

/* Auth Actions */
.btm-auth-actions {
    text-align: center;
    margin: 24px 0;
    padding: 16px;
    border-top: 1px solid #d0d7de;
}

#btm-delete-connection {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #57606a;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid #d0d7de;
}

#btm-delete-connection:hover {
    color: #cf222e;
    border-color: #cf222e;
    background: #ffebe9;
    text-decoration: none;
}

#btm-delete-connection .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

@media screen and (max-width: 782px) {
    .btm-user-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .btm-sponsor-status {
        margin: 0 auto;
    }
}

/* Sponsor Button */
.button-sponsor {
    background: #8250df !important;
    border-color: #6e40c9 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 16px !important;
    height: auto !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease-in-out !important;
}

.button-sponsor:hover {
    background: #6e40c9 !important;
    border-color: #5a32a3 !important;
    transform: translateY(-1px);
}

.button-sponsor .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    animation: pulse 1.5s infinite;
}

.btm-sponsor-message {
    margin: 12px 0 0;
    color: #57606a;
    font-size: 13px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
/* OpenAI API key validation feedback */
.btm-validation-result {
    margin-left: 8px;
    font-style: italic;
}
.btm-validation-result.is-valid {
    color: #46b450;
    font-style: normal;
}
.btm-validation-result.is-invalid {
    color: #dc3232;
    font-style: normal;
}

/* ==========================================================================
   Overview tab + promotional slideshow (ported from radle-lite styling)
   ========================================================================== */
.btm-overview-container {
    margin: 0;
}

/* The form container is the card now, so the overview section blends in. */
.btm-overview-section {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
}

.btm-feature-matrix {
    margin: 30px 0 0;
}

.btm-feature-list {
    margin: 0;
    padding: 0;
}

.btm-feature-list li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    list-style: none;
}

.btm-feature-list .dashicons {
    position: absolute;
    left: 0;
    top: 2px;
}

.btm-feature-list .dashicons-yes {
    color: #46b450;
}

/* Promo slideshow. Per-slide brand color is driven by --accent (set in JS). */
.btm-promo-slideshow {
    --accent: #45c08d;
    --cta-bg: #45c08d;
    position: relative;
    margin: 22px 0 10px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-top: 4px solid var(--accent);
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.btm-promo-track {
    display: grid;
}

.btm-promo-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 26px 30px 40px;
}

.btm-promo-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.btm-promo-main {
    flex: 1 1 auto;
    min-width: 0;
}

.btm-promo-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.btm-promo-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.btm-promo-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.btm-promo-name {
    font-weight: 700;
    font-size: 14px;
    color: #1d2327;
}

.btm-promo-sep {
    width: 1px;
    height: 14px;
    background: #c3c4c7;
}

.btm-promo-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.btm-promo-main h3 {
    margin: 0 0 6px;
    font-size: 21px;
    line-height: 1.3;
    color: #1d2327;
}

.btm-promo-main p {
    margin: 0;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.55;
    color: #50575e;
}

.btm-promo-action {
    flex: 0 0 auto;
}

.btm-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: var(--cta-bg);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btm-promo-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    color: #fff;
}

.btm-promo-cta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Navigation — bottom-right */
.btm-promo-nav {
    position: absolute;
    right: 20px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btm-promo-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btm-promo-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #dcdcde;
    cursor: pointer;
    transition: background 0.15s ease, width 0.15s ease;
}

.btm-promo-dot.active {
    background: var(--accent);
    width: 22px;
}

.btm-promo-arrow {
    width: 30px;
    height: 30px;
    border: 1px solid #dcdcde;
    border-radius: 50%;
    background: #fff;
    color: #50575e;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.btm-promo-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btm-promo-arrow .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Persistent review bar under the slideshow */
.btm-review-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 4px;
    font-size: 13px;
    color: #50575e;
}

.btm-review-bar .dashicons-star-filled {
    color: #ffb900;
}

.btm-review-bar-link {
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 782px) {
    .btm-promo-slide {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 52px;
    }
    .btm-promo-main h3 {
        font-size: 19px;
    }
    .btm-promo-nav {
        left: 20px;
        right: 20px;
        justify-content: center;
    }
}
