/* Edge Creator Specific Styles */

.edge-creator-container {
    min-height: calc(100vh - 80px);
    background: #f8f9fa;
}

.main-content {
    min-height: calc(100vh - 80px);
}

/* Configuration Sidebar */
.config-sidebar {
    background: white;
    border-right: 1px solid #dee2e6;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    flex: 0 0 33.333%;
    max-width: 500px;
    min-width: 360px;
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .config-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
}

.config-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.config-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.project-name-header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.project-reset-btn {
    white-space: nowrap;
}

.info-tooltip {
    color: inherit;
    text-decoration: none;
}

.info-tooltip:hover,
.info-tooltip:focus {
    color: #28a745;
    text-decoration: none;
}

/* Tab Styling */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid transparent;
    background: none;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    background: #f8f9fa;
    color: #28a745;
}

.nav-tabs .nav-link.active {
    color: #28a745;
    background: none;
    border-color: transparent transparent #28a745 transparent;
    border-width: 0 0 2px 0;
}

/* Upload Zone Styling */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.upload-zone:hover {
    border-color: #28a745;
    background: #f8fff9;
}

.upload-zone.dragover {
    border-color: #28a745;
    background: #e8f5e8;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-content .file-name {
    display: block;
    word-break: break-word;
    text-align: center;
    max-width: 100%;
}

/* Preview Panel - Full Height */
.preview-panel {
    background: white;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

/* Preview Controls */
.preview-controls {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
    flex-shrink: 0;
}

.view-mode-tabs {
    display: flex;
    gap: 0.5rem;
}

.view-mode-tab {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
    font-weight: 500;
}

.view-mode-tab:hover {
    background: #f8f9fa;
    color: #28a745;
}

.view-mode-tab.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* Preview Area - Full Height */
.preview-area {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 200px);
}

.edge-preview-panel-root[data-embedded="true"] .book-3d-viewer {
    padding: 0;
}

/* Enhanced 3D Book Viewer - Full Size */
.book-3d-viewer {
    flex: 1;
    min-height: calc(100vh - 250px) !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 !important;
    box-shadow: none !important;
}

.viewer-stage {
    flex: 1 !important;
    height: auto !important;
    min-height: calc(100vh - 350px) !important;
    max-height: none !important;
}

/* 3D Previewer Quick Action Rail */
.viewer-right-rail {
    align-items: flex-end;
    width: auto;
}

.viewer-rail-section.viewer-quick-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem 0.9rem 0.9rem;
    overflow: visible;
    flex-wrap: nowrap;
    width: max-content;
}

.threejs-preview__tooltip-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5000;
}

.threejs-preview__tooltip {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-100%, -50%) scale(0.96);
    transform-origin: 100% 50%;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
    opacity: 0;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.threejs-preview__tooltip--visible {
    opacity: 1;
    transform: translate(-100%, -50%) scale(1);
}

.viewer-quick-actions .icon-btn {
    position: relative;
}

.viewer-quick-actions .icon-btn.active,
.viewer-quick-actions .icon-btn[aria-expanded="true"] {
    background: #28a745;
    border-color: #28a745;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(40, 167, 69, 0.28);
}

.view-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    transform: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 6;
    pointer-events: none;
}

.threejs-preview__panel {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
}

.threejs-preview__panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.threejs-preview__panel-content {
    position: absolute;
    top: auto;
    bottom: 0;
    right: calc(100% + 12px);
    left: auto;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    color: #1f2937;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 12;
}

.threejs-preview__panel:hover .threejs-preview__panel-content,
.threejs-preview__panel:focus-within .threejs-preview__panel-content,
.threejs-preview__panel.threejs-preview__panel--open .threejs-preview__panel-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.threejs-preview__panel .btn-row.single-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.threejs-preview__panel .btn-row.single-line .btn-row-label {
    font-weight: 600;
    font-size: 12px;
    color: #0f172a;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .viewer-quick-actions .icon-btn::after {
        transition: none;
    }
}

/* Onboarding Tutorial */
.onboarding-help-wrapper {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    pointer-events: none;
    z-index: 1100;
}

.onboarding-help-button {
    position: relative;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: #fcfdfc;
    color: #0f5132;
    box-shadow: 0 8px 24px rgba(17, 81, 50, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
    pointer-events: auto;
}

.onboarding-help-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(17, 81, 50, 0.26);
}

.onboarding-help-button:focus-visible {
    outline: 3px solid rgba(91, 189, 134, 0.85);
    outline-offset: 2px;
}

.onboarding-help-button i {
    font-size: 1.35rem;
}

.onboarding-help-callout {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    max-width: 260px;
    color: #0f5132;
    font-family: 'Caveat', 'Patrick Hand', 'Comic Sans MS', cursive;
    font-size: 1.35rem;
    line-height: 1.1;
    text-align: left;
    pointer-events: none;
    text-shadow: 0 4px 12px rgba(252, 253, 252, 0.9);
    transform: rotate(-2deg);
    transform-origin: left bottom;
}

.onboarding-help-callout__text {
    display: block;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.onboarding-help-callout__arrow {
    width: 140px;
    height: 80px;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 8px rgba(252, 253, 252, 0.75));
    overflow: visible;
}

.onboarding-help-callout__curve {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.onboarding-help-callout__arrow-head {
    fill: currentColor;
}

@media (max-width: 640px) {
    .onboarding-help-callout {
        gap: 10px;
        font-size: 1.2rem;
    }

    .onboarding-help-callout__arrow {
        width: 112px;
        height: 64px;
    }

    .onboarding-help-wrapper {
        left: 16px;
        bottom: 16px;
        gap: 12px;
    }
}

.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    pointer-events: none;
}

.onboarding-overlay[hidden] {
    display: none;
}

.onboarding-overlay__segment {
    position: fixed;
    background: rgba(8, 37, 24, 0.55);
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: inherit;
}

.onboarding-highlight-ring {
    position: fixed;
    border-radius: 8px;
    box-shadow: 0 0 0 4px #d9efe1, 0 16px 36px rgba(17, 81, 50, 0.25);
    pointer-events: none;
    z-index: 1045;
    transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.onboarding-highlight-ring[hidden] {
    display: none;
}

.onboarding-highlight {
    position: relative;
    z-index: 1046;
}

.onboarding-tab-highlight {
    position: relative;
    z-index: 1047;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.4), 0 0 18px rgba(40, 167, 69, 0.35);
    transition: box-shadow 0.2s ease;
}

.onboarding-tooltip {
    position: fixed;
    max-width: 320px;
    padding: 1.25rem 1.5rem 1.5rem;
    background: #f3fbf6;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(17, 81, 50, 0.22);
    color: #0f3926;
    z-index: 1101;
}

.onboarding-tooltip[hidden] {
    display: none;
}

.onboarding-tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.onboarding-tooltip[data-placement='right']::after {
    top: 50%;
    left: -14px;
    border-width: 10px 14px 10px 0;
    border-color: transparent #f3fbf6 transparent transparent;
    transform: translateY(-50%);
}

.onboarding-tooltip[data-placement='left']::after {
    top: 50%;
    right: -14px;
    border-width: 10px 0 10px 14px;
    border-color: transparent transparent transparent #f3fbf6;
    transform: translateY(-50%);
}

.onboarding-tooltip[data-placement='top']::after {
    bottom: -14px;
    left: 50%;
    border-width: 14px 10px 0 10px;
    border-color: #f3fbf6 transparent transparent transparent;
    transform: translateX(-50%);
}

.onboarding-tooltip[data-placement='bottom']::after {
    top: -14px;
    left: 50%;
    border-width: 0 10px 14px 10px;
    border-color: transparent transparent #f3fbf6 transparent;
    transform: translateX(-50%);
}

.onboarding-tooltip__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}

.onboarding-tooltip__close:focus-visible {
    outline: 2px solid rgba(91, 189, 134, 0.8);
    outline-offset: 2px;
}

.onboarding-tooltip__step {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 57, 38, 0.7);
    margin-bottom: 0.5rem;
}

.onboarding-tooltip__title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.onboarding-tooltip__body {
    font-size: 0.95rem;
    margin: 0 0 1rem;
    color: rgba(15, 57, 38, 0.85);
}

.onboarding-tooltip__actions {
    display: flex;
    gap: 0.5rem;
}

.onboarding-tooltip__btn {
    flex: 1;
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.onboarding-tooltip__btn--ghost {
    background: rgba(217, 239, 225, 0.5);
    color: #0f5132;
}

.onboarding-tooltip__btn--ghost:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(17, 81, 50, 0.18);
}

.onboarding-tooltip__btn--primary {
    background: #3db873;
    color: white;
    box-shadow: 0 8px 24px rgba(17, 81, 50, 0.25);
}

.onboarding-tooltip__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(17, 81, 50, 0.32);
}

.onboarding-tooltip__btn:focus-visible {
    outline: 2px solid rgba(91, 189, 134, 0.85);
    outline-offset: 2px;
}

/* Status Bar */
.status-bar {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* Expandable Sections */
.expandable-section {
    margin-bottom: 1rem;
}

.expandable-section .section-header {
    cursor: pointer;
}

.expandable-section.collapsed .section-content {
    display: none;
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1rem 0 0.5rem 0;
}

.section-header h3 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.1rem;
    color: #495057;
}

.section-content {
    padding: 0.5rem 0;
}

.slice-size-options .btn {
    flex: 1;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
}

.slice-size-options .btn + .btn {
    margin-left: 0.5rem;
}

.slice-size-label {
    flex: 1;
}

.slice-size-value {
    margin-left: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
}

.slice-size-options .btn-check:checked + .btn .slice-size-value,
.slice-size-options .btn.active .slice-size-value {
    color: rgba(255, 255, 255, 0.9);
}

/* Form Styling */
.form-label.fw-semibold {
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control[readonly] {
    background-color: #f1f3f5;
    color: #6c757d;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Custom Size Input */
#customSizeInput {
    animation: slideDown 0.3s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .config-sidebar {
        width: 100% !important;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .preview-panel {
        min-height: 500px;
    }

    .book-3d-viewer {
        min-height: 400px !important;
    }

    .viewer-stage {
        min-height: 300px !important;
    }
}

/* Success States */
.text-success.small {
    font-weight: 500;
}

.upload-zone .text-success {
    color: #28a745 !important;
}

/* Purchase Modal Styles */
.purchase-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1050;
    padding: 2rem 1rem;
    overflow-y: auto;
}

@media (min-height: 720px) {
    .purchase-modal-overlay {
        align-items: center;
    }
}

.purchase-modal {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 460px;
    width: 100%;
    padding: 2rem;
    position: relative;
    animation: modalFadeIn 0.25s ease-out;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.purchase-modal-header {
    margin-bottom: 1.5rem;
}

.purchase-modal.with-payment {
    max-width: 960px;
}

.purchase-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.purchase-modal.with-payment .purchase-modal-body {
    gap: 2rem;
}

.purchase-summary {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.purchase-summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    gap: 1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.purchase-summary-card-low {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.45);
}

.purchase-summary-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.purchase-summary-card-actions .btn {
    min-width: 150px;
}

.purchase-price {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    background: #f8f9fa;
}

.purchase-price-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.purchase-price-items {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9375rem;
}

.purchase-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.purchase-price-item span:last-child {
    font-variant-numeric: tabular-nums;
}

.purchase-modal-footer .btn {
    border-radius: 10px;
}

.purchase-modal-footer {
    margin-top: 1.5rem;
}

.purchase-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.purchase-account {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.95rem;
}

.purchase-payment {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.purchase-payment-header {
    margin-bottom: 0.5rem;
}

.purchase-payment-element {
    border: 1px solid var(--pe-border);
    border-radius: 14px;
    padding: 1.25rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

#purchasePaymentMessage {
    border-radius: 12px;
    font-size: 0.95rem;
}

#purchasePaymentSubmit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

body.modal-blur-active main {
    position: relative;
}

body.modal-blur-active main > :not(.purchase-modal-overlay) {
    filter: blur(3px);
    transition: filter 0.2s ease;
}

body.modal-blur-active main > .purchase-modal-overlay {
    filter: none;
}

@media (min-width: 992px) {
    .purchase-modal.with-payment .purchase-modal-body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .purchase-modal {
        padding: 1.5rem;
        max-height: calc(100vh - 2rem);
    }
}

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

/* Feature styling */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item .feature-options {
    background: #f8f9fa;
    border: 1px solid var(--pe-border);
    border-radius: 12px;
    padding: 1rem;
}

.feature-image-grid {
    display: grid;
    gap: 1rem;
}

.feature-image-control {
    background: #fff;
    border: 1px solid var(--pe-border);
    border-radius: 12px;
    padding: 1rem;
}

.feature-image-control .input-group .btn {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.feature-item .badge {
    font-size: 0.75rem;
}

.feature-price-badge {
    background: rgba(40, 167, 69, 0.15);
    color: #1f7a34;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(40, 167, 69, 0.3);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

#purchaseFinalBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.validation-checklist .form-check-label {
    font-size: 0.95rem;
}

#generateProofBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.final-proof-toggle .btn-group .btn:first-of-type {
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

.final-proof-toggle .btn-group .btn:last-of-type {
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

.tabbed-range-form .card-body,
.tabbed-configured .card-body,
.tabbed-placement .card-body,
.tabbed-label-style .card-body,
.tabbed-size-controls .card-body {
    background: #fff;
}
.tabbed-size-controls .row + .row {
    margin-top: 1rem;
}

.tabbed-configured-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tabbed-configured-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--pe-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.tabbed-configured-item .tab-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tabbed-color-indicator {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tabbed-configured-item .btn-outline-danger {
    border-radius: 8px;
}

.tabbed-label-style .label-font-row label {
    min-width: 120px;
}

.label-font-dropdown .btn {
    min-height: 44px;
}

.tabbed-label-style {
    overflow: visible;
}

.label-font-dropdown {
    position: relative;
}

.label-font-dropdown .dropdown-menu {
    max-height: 250px;
    overflow-y: auto;
    z-index: 2000;
}

.tab-width-slider {
    height: 0.5rem;
    accent-color: var(--pe-primary, #0d6efd);
}

.tab-width-slider::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, var(--pe-primary, #0d6efd), #5ce0a0);
    height: 0.5rem;
    border-radius: 999px;
}

.tab-width-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--pe-primary, #0d6efd);
    margin-top: -6px;
}

.tab-width-slider::-moz-range-track {
    background: linear-gradient(90deg, var(--pe-primary, #0d6efd), #5ce0a0);
    height: 0.5rem;
    border-radius: 999px;
}

.tab-width-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--pe-primary, #0d6efd);
}

.label-font-option.active,
.label-font-option.active:hover {
    background: rgba(13, 110, 253, 0.15);
    color: var(--pe-primary, #0d6efd);
}
.tabbed-placement .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0;
    border-color: #28a745;
}

.tabbed-placement .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.tabbed-placement .form-check-label {
    font-weight: 500;
}

.stagger-depth-slider {
    accent-color: #28a745;
}

.stagger-depth-slider::-webkit-slider-runnable-track {
    background: rgba(40, 167, 69, 0.3);
    height: 0.4rem;
    border-radius: 999px;
}

.stagger-depth-slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #28a745;
    margin-top: -6px;
}

.stagger-depth-slider::-moz-range-track {
    background: rgba(40, 167, 69, 0.3);
    height: 0.4rem;
    border-radius: 999px;
}

.stagger-depth-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #28a745;
}
