body.wp-admin {
    font-family: revert;
    font-size: 13px;
}


/*@font-face {*/
/*    font-family: 'primeicons';*/
/*    font-display: block;*/
/*    src: url('https://portal.qpilot.cloud/primeicons.eot');*/
/*    src: url('https://portal.qpilot.cloud/primeicons.eot?#iefix') format('embedded-opentype'), url('https://portal.qpilot.cloud/primeicons.woff2') format('woff2'), url('https://portal.qpilot.cloud/primeicons.woff') format('woff'), url('https://portal.qpilot.cloud/primeicons.ttf') format('truetype'), url('https://portal.qpilot.cloud/primeicons.svg?#primeicons') format('svg');*/
/*    font-weight: normal;*/
/*    font-style: normal;*/
/*}*/

/**
 * QMC Components CSS Overrides
 *
 * Overrides WordPress admin styles that conflict with QMC web components.
 *
 * @package Autoship
 * @since 2.10.5
 */
/* Override WordPress accordion-section-content which sets display:none by default */
#qmc-scheduled-orders-app .accordion-section-content,
#qmc-customers-app .accordion-section-content,
#qmc-coupons-app .accordion-section-content,
#qmc-dunning-app .accordion-section-content,
#qmc-retention-workflows-app .accordion-section-content,
#qmc-products-app .accordion-section-content,
#qmc-quick-links-app .accordion-section-content,
#qmc-dashboard .accordion-section-content {
	display: block;
	padding: 0;
	overflow: visible;
}


#qmc-scheduled-orders-app,
#qmc-customers-app,
#qmc-coupons-app,
#qmc-dunning-app,
#qmc-retention-workflows-app,
#qmc-products-app,
#qmc-quick-links-app,
#qmc-dashboard {
    margin: 0;
    padding-top: 4px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 4px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

#asc-settings p, #asc-settings label, #asc-settings input, #asc-settings textarea, #asc-settings .html-editor-wrapper{
    max-width: none;
}

input.readonly, input[readonly], textarea.readonly, textarea[readonly] {
    background-color: #fff !important;
}

input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select, textarea{
    border: 1px solid #e5e7eb;
}
input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week]{
    padding-inline: var(--p-inputtext-padding-x);
    padding-block: var(--p-inputtext-padding-y);
    min-height: 42px;
    line-height: normal;

}

#wpcontent{
    background-color: white;
    padding: 12px;

}

#wpbody-content{
    padding-bottom: 40px;
}

.page-title {
    margin: 0;
    color: #1F2937;
    font-size: 1.125rem;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6 0%, #6366F1 100%);
    border-radius: 1px;
    opacity: 0.7;
}






.compact-breadcrumb {
    margin-bottom: 0.25rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f3f4f6;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.inline-breadcrumb {
    display: inline-flex;
    align-items: center;
    height: fit-content;
    margin: 0;
    padding: 0;
    background: transparent;
}

.breadcrumb-header-full {
    display: block;
}

.breadcrumb-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 1.75rem;
    margin-bottom: 0.85rem;
    margin-top: 0.5rem;
}

.title-section {
    flex-shrink: 0;
}

.page-title {
    margin: 0;
    color: #1f2937;
    font-size: 1.35rem;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 1px;
    opacity: 0.7;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    color: #6b7280;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.inline-breadcrumb .breadcrumb-container {
    font-size: 0.75rem;
    line-height: 1;
    color: #9ca3af;
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow-x: visible;
}

.breadcrumb-container::-webkit-scrollbar {
    display: none;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.375rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.15s ease;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.breadcrumb-link:hover {
    background-color: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
}

.breadcrumb-link:focus {
    outline: 1px solid #3b82f6;
    outline-offset: 1px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.home-link {
    color: #3b82f6;
    font-weight: 600;
    padding: 0.125rem;
}

.home-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.home-icon {
    font-size: 0.875rem;
    color: inherit;
}

.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    color: #1f2937;
    font-weight: 600;
    border-radius: 0.375rem;
    background-color: #374151;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}

.breadcrumb-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.7;
}

.separator {
    color: #d1d5db;
    font-size: 0.6875rem;
    margin: 0 0.125rem;
    flex-shrink: 0;
}

.breadcrumb-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.375rem;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.15s ease;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.breadcrumb-ellipsis:hover {
    background-color: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
}

.breadcrumb-ellipsis:focus {
    outline: 1px solid #3b82f6;
    outline-offset: 1px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.ellipsis-dots {
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .compact-breadcrumb {
        padding: 0.375rem 0;
        margin-bottom: 0.375rem;
    }

    .breadcrumb-container {
        font-size: 0.75rem;
        gap: 0.125rem;
    }

    .inline-breadcrumb .breadcrumb-container {
        font-size: 0.7rem;
        gap: 0.125rem;
    }

    .breadcrumb-link,
    .breadcrumb-ellipsis {
        padding: 0.1875rem 0.375rem;
    }

    .inline-breadcrumb .breadcrumb-link,
    .inline-breadcrumb .breadcrumb-ellipsis {
        padding: 0.125rem 0.25rem;
    }

    .breadcrumb-current {
        padding: 0.1875rem 0.5rem;
    }

    .inline-breadcrumb .breadcrumb-current {
        padding: 0.125rem 0.375rem;
    }

    .breadcrumb-text {
        max-width: 100px;
    }

    .inline-breadcrumb .breadcrumb-text {
        max-width: 80px;
    }

    .home-icon {
        font-size: 0.75rem;
    }

    .separator {
        font-size: 0.625rem;
        margin: 0 0.0625rem;
    }

    /* Mobile layout for compact mode with title */
    .breadcrumb-header-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        min-height: auto;
    }

    .breadcrumb-header-compact .title-section {
        order: 1;
        width: 100%;
    }

    .breadcrumb-header-compact nav {
        order: 2;
        width: 100%;
    }

    .page-title::after {
        height: 2.5px;
        bottom: -3px;
    }
}

/* Large screen enhancements */
@media (min-width: 1024px) {
    .breadcrumb-text {
        max-width: 200px;
    }

    .breadcrumb-container {
        font-size: 0.875rem;
    }
}

/* Focus indicators for better accessibility */
.breadcrumb-link:focus-visible,
.breadcrumb-ellipsis:focus-visible {
    outline: 1px solid #3b82f6;
    outline-offset: 1px;
    border-radius: 0.25rem;
}

/* ==========================================================================
   SETTINGS PAGE - QMC Design System Styling
   ========================================================================== */

/* QPilot Brand Color Variables */
#asc-settings {
    --qmc-primary: #3b82f6;
    --qmc-primary-hover: #2563eb;
    --qmc-secondary: #8b5cf6;
    --qmc-success: #22c55e;
    --qmc-success-bg: #dcfce7;
    --qmc-success-text: #166534;
    --qmc-warning: #f59e0b;
    --qmc-warning-bg: #fef3c7;
    --qmc-warning-text: #92400e;
    --qmc-danger: #ef4444;
    --qmc-danger-bg: #fee2e2;
    --qmc-danger-text: #991b1b;
    --qmc-text-primary: #1f2937;
    --qmc-text-secondary: #6b7280;
    --qmc-text-muted: #9ca3af;
    --qmc-border: #e5e7eb;
    --qmc-border-light: #f3f4f6;
    --qmc-surface: #f8fafc;
}

/* --------------------------------------------------------------------------
   Tab Navigation - QMC Style
   -------------------------------------------------------------------------- */
#asc-settings .nav-tab-wrapper {
    border-bottom: 1px solid var(--qmc-border);
    padding-bottom: 0;
    margin-bottom: 1.5rem;
    background: transparent;
}

#asc-settings .nav-tab {
    border: none;
    background: transparent;
    color: var(--qmc-text-secondary);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem -1px 0;
    position: relative;
    transition: color 0.15s ease;
}

#asc-settings .nav-tab:hover {
    background: transparent;
    color: var(--qmc-primary);
}

#asc-settings .nav-tab:focus {
    box-shadow: none;
    outline: none;
}

#asc-settings .nav-tab-active,
#asc-settings .nav-tab-active:hover,
#asc-settings .nav-tab-active:focus {
    background: transparent;
    border: none;
    color: var(--qmc-primary);
    font-weight: 600;
    box-shadow: none;
}

#asc-settings .nav-tab-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 1px;
}

/* --------------------------------------------------------------------------
   Status Indicators - QMC Style
   -------------------------------------------------------------------------- */
#asc-settings .ahstatus.valid {
    color: var(--qmc-success);
}

#asc-settings .ahstatus.error {
    color: var(--qmc-danger);
}

#asc-settings .ahstatus:not(.valid):not(.error) {
    color: var(--qmc-warning);
}

#asc-settings .ahstatus i.icon-asc::before {
    border-radius: 50%;
    font-size: 0.625rem;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
}

#asc-settings .ahstatus.valid i.icon-asc::before {
    background: var(--qmc-success-bg);
    color: var(--qmc-success-text);
    border-color: #bbf7d0;
}

#asc-settings .ahstatus.error i.icon-asc::before {
    background: var(--qmc-danger-bg);
    color: var(--qmc-danger-text);
    border-color: #fecaca;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
#asc-settings h3,
#asc-settings .title-label {
    color: var(--qmc-text-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    /*border-bottom: 1px solid var(--qmc-border-light);*/
    border-bottom: none;
}

#asc-settings > h1 {
    color: var(--qmc-text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

#asc-settings > h1 a {
    color: var(--qmc-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

#asc-settings > h1 a:hover {
    color: var(--qmc-primary-hover);
}

/* --------------------------------------------------------------------------
   Form Inputs - QMC Style
   -------------------------------------------------------------------------- */
#asc-settings input[type="text"],
#asc-settings input[type="email"],
#asc-settings input[type="url"],
#asc-settings input[type="number"],
#asc-settings input[type="password"],
#asc-settings select,
#asc-settings textarea {
    border: 1px solid var(--qmc-border);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: 2.5rem;
    color: var(--qmc-text-primary);
    min-width: 50%;
}

#asc-settings input[type="text"]:focus,
#asc-settings input[type="email"]:focus,
#asc-settings input[type="url"]:focus,
#asc-settings input[type="number"]:focus,
#asc-settings input[type="password"]:focus,
#asc-settings select:focus,
#asc-settings textarea:focus {
    border-color: var(--qmc-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    outline: none;
}

#asc-settings label {
    color: var(--qmc-text-primary);
    /*font-weight: 500;*/
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    display: inline-block;
}

#asc-settings label.title {
    font-size: 1.125rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Buttons - QMC Style
   -------------------------------------------------------------------------- */
#asc-settings .button-primary,
#asc-settings input[type="submit"].button-primary {
    background: var(--qmc-primary);
    border-color: var(--qmc-primary);
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background 0.15s ease, border-color 0.15s ease;
    min-height: 2.5rem;
    line-height: 1.5;
}

#asc-settings .button-primary:hover,
#asc-settings input[type="submit"].button-primary:hover {
    background: var(--qmc-primary-hover);
    border-color: var(--qmc-primary-hover);
    color: white;
}

#asc-settings .button-primary:focus,
#asc-settings input[type="submit"].button-primary:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    outline: none;
}

#asc-settings .button-secondary,
#asc-settings .button {
    background: white;
    border: 1px solid var(--qmc-border);
    color: var(--qmc-text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    min-height: 2.5rem;
    line-height: 1.5;
}

#asc-settings .button-secondary:hover,
#asc-settings .button:hover {
    background: var(--qmc-surface);
    border-color: var(--qmc-text-muted);
    color: var(--qmc-text-primary);
}

#asc-settings .button-danger {
    background: white;
    border: 1px solid var(--qmc-danger, #ef4444);
    color: var(--qmc-danger, #ef4444);
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 2.5rem;
    line-height: 1.5;
    text-decoration: none;
}

#asc-settings .button-danger:hover {
    background: var(--qmc-danger, #ef4444);
    color: white;
}

#asc-settings .button-danger:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.wrap
{
    margin-left: 0;
    margin-right: 0;
}

/* --------------------------------------------------------------------------
   Sticky Action Bar
   -------------------------------------------------------------------------- */
#asc-settings form > .submit {
    /*position: sticky;*/
    bottom: 0;
    /*background: white;*/
    /*border-top: 1px solid var(--qmc-border);*/
    padding: 1rem 0;
    margin-top: 1.5rem;
    /*box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);*/
    z-index: 10;
}

/* --------------------------------------------------------------------------
   Subscription Status Notice
   -------------------------------------------------------------------------- */
#asc-settings .subscription-status-none {
    background: var(--p-yellow-50);
    border: 1px solid var(--qmc-warning);
    border-color: var(--p-yellow-200);
    /*border-left-width: 4px;*/
    color: var(--qmc-warning-text);
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
}

#asc-settings .subscription-status-none a {
    color: var(--qmc-primary);
    font-weight: 500;



}

/* --------------------------------------------------------------------------
   Health Check Notice Cards
   -------------------------------------------------------------------------- */
.autoship_general_admin_notice {



    background-color: var(--qmc-surface, #f8fafc);
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.autoship_general_admin_notice.health-notice,
.autoship_general_admin_notice.health-error,
.autoship_general_admin_notice.health-valid {
    background-color: var(--qmc-surface, #f8fafc);
    border: 1px solid var(--qmc-border, #e5e7eb);
    /*border-left-width: 4px;*/
    margin: 1rem 0;
}

.autoship_general_admin_notice.health-notice {
    border-color: var(--qmc-warning, #f59e0b);
}

.autoship_general_admin_notice.health-error {
    /*border-color: var(--qmc-danger, #ef4444);*/
    background: var(--p-red-50);
    border-color: var(--p-red-200);
}

.autoship_general_admin_notice.health-valid {
    border-color: var(--qmc-success, #22c55e);
}

.autoship_general_admin_notice .autoship-health-title {
    color: var(--qmc-text-primary, #1f2937);
    font-weight: 600;
}

.autoship_general_admin_notice .autoship-health-msg {
    color: var(--qmc-text-secondary, #6b7280);
}

.autoship_general_admin_notice a {
    color: var(--qmc-primary, #3b82f6);
    font-weight: 500;
}

.autoship_general_admin_notice a:hover {
    color: var(--qmc-primary-hover, #2563eb);
}

/* --------------------------------------------------------------------------
   Stats List - QMC Style
   -------------------------------------------------------------------------- */
#asc-settings ul.autoship-stats-list li {
    border-bottom-color: var(--qmc-border-light);
    border-bottom: none;
    color: var(--qmc-text-secondary);
    font-family: inherit;
}

#asc-settings ul.autoship-stats-list li .list-label {
    color: var(--qmc-text-primary);
}

/* --------------------------------------------------------------------------
   Help Text
   -------------------------------------------------------------------------- */
#asc-settings p.help-text-wrapper {
    background: var(--qmc-surface);
    border: 1px solid var(--qmc-border-light);
    border-radius: 0.375rem;
    color: var(--qmc-text-secondary);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */
#asc-settings a {
    color: var(--qmc-primary);
    transition: color 0.15s ease;
}

#asc-settings a:hover {
    color: var(--qmc-primary-hover);
}

/* --------------------------------------------------------------------------
   Two-Column Settings Layout
   -------------------------------------------------------------------------- */
.asc-settings-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.asc-settings-column {
    /*background: var(--qmc-surface, #f8fafc);*/
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.asc-settings-column h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--qmc-border, #e5e7eb);
    font-size: 1rem;
    font-weight: 600;
    color: var(--qmc-text-primary, #1f2937);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.asc-card-description {
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
    color: var(--qmc-text-primary, #1f2937);
    line-height: 1.5;
}

.asc-settings-column h3 i.pi {
    color: var(--qmc-primary, #3b82f6);
    font-size: 1.125rem;
}

.asc-settings-column .form-table {
    margin-top: 0;
}

.asc-settings-column .form-table th {
    padding: 0.75rem 0;
    width: auto;
    font-weight: 500;
}

.asc-settings-column .form-table td {
    padding: 0.75rem 0;
}

.asc-settings-column .form-table input[type="text"],
.asc-settings-column .form-table input[type="password"] {
    width: 100%;
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   Alert Boxes
   -------------------------------------------------------------------------- */
.asc-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    /*border-left-width: 4px;*/
    font-size: 0.875rem;
    line-height: 1.5;
}

.asc-alert i.pi {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.asc-alert-content {
    flex: 1;
}

.asc-alert-content strong {
    margin-right: 0.25rem;
}

/* Warning variant */
.asc-alert-warning {
    background: var(--p-yellow-50);
    border-color: var(--p-yellow-200);
    color: var(--qmc-warning-text, #92400e);
}

.asc-alert-warning i.pi {
    color: var(--qmc-warning, #f59e0b);
}

.asc-alert-warning strong {
    color: var(--qmc-danger, #dc2626);
}

/* Info variant */
.asc-alert-info {
    background: #e0f2fe;
    border-color: #0ea5e9;
    color: #0c4a6e;
}

.asc-alert-info i.pi {
    color: #0ea5e9;
}

/* Success variant */
.asc-alert-success {
    background: var(--qmc-success-bg, #dcfce7);
    border-color: var(--qmc-success, #22c55e);
    color: var(--qmc-success-text, #166534);
}

.asc-alert-success i.pi {
    color: var(--qmc-success, #22c55e);
}

/* Danger variant */
.asc-alert-danger {
    background: var(--p-red-50);
    border-color: var(--p-red-200);
    color: var(--qmc-danger-text, #991b1b);
}

.asc-alert-danger i.pi {
    color: var(--qmc-danger, #ef4444);
}

/* Legacy class support */
.asc-danger-zone {
    background: var(--qmc-warning-bg, #fef3c7);
    border: 1px solid var(--qmc-warning, #f59e0b);
    /*border-left-width: 4px;*/
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--qmc-warning-text, #92400e);
}

.asc-danger-zone strong {
    color: var(--qmc-danger, #ef4444);
}

/* --------------------------------------------------------------------------
   Extensions Page
   -------------------------------------------------------------------------- */
.asc-extensions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--qmc-text-secondary, #6b7280);
}

.asc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: var(--qmc-primary, #3b82f6);
    border-radius: 9999px;
}

.asc-extensions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.asc-extension-card {
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
}

.asc-extension-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: var(--qmc-surface, #f8fafc);
    border-bottom: 1px solid var(--qmc-border, #e5e7eb);
}

.asc-extension-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--qmc-text-primary, #1f2937);
}

.asc-extension-title i.pi {
    color: var(--qmc-primary, #3b82f6);
}

.asc-extension-version {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--qmc-text-muted, #9ca3af);
    background: var(--qmc-border, #e5e7eb);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.asc-extension-body {
    padding: 1rem;
}

.asc-extension-description {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    color: var(--qmc-text-secondary, #6b7280);
    line-height: 1.5;
}

.asc-extension-meta {
    font-size: 0.8125rem;
    color: var(--qmc-text-muted, #9ca3af);
}

.asc-extension-meta a {
    color: var(--qmc-primary, #3b82f6);
    text-decoration: none;
}

.asc-extension-meta a:hover {
    text-decoration: underline;
}

.asc-meta-separator {
    margin: 0 0.5rem;
    color: var(--qmc-border, #e5e7eb);
}

/* --------------------------------------------------------------------------
   Form Row Layout (Label Above Input)
   -------------------------------------------------------------------------- */
.asc-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.asc-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.asc-form-field.full-width {
    grid-column: 1 / -1;
}

.asc-form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--qmc-text-primary, #1f2937);
}

.asc-form-field input[type="text"],
.asc-form-field input[type="email"],
.asc-form-field input[type="url"],
.asc-form-field input[type="number"],
.asc-form-field input[type="password"],
.asc-form-field select,
.asc-form-field textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--qmc-text-primary, #1f2937);
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: 2.5rem;
    box-sizing: border-box;
}

.asc-form-field input[readonly],
.asc-form-field input:disabled {
    background-color: var(--qmc-surface, #f8fafc);
    color: var(--qmc-text-secondary, #6b7280);
    cursor: not-allowed;
}

.asc-form-field input:focus,
.asc-form-field select:focus,
.asc-form-field textarea:focus {
    outline: none;
    border-color: var(--qmc-primary, #3b82f6);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.asc-button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Mobile Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    #asc-settings .nav-tab-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    #asc-settings .nav-tab {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    #asc-settings form > .submit {
        padding: 0.75rem 0;
    }

    #asc-settings > h1 {
        font-size: 1.25rem;
    }

    /* Single column on mobile */
    .asc-settings-columns {
        grid-template-columns: 1fr;
    }

    .asc-settings-column {
        padding: 1rem;
    }

    .asc-form-row {
        grid-template-columns: 1fr;
    }
}

/* Header right section with search and title */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Global Search Trigger */
.search-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.8125rem;
    color: #64748b;
    min-width: 160px;
}

.search-trigger:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.search-trigger:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.search-trigger .pi-search {
    font-size: 0.875rem;
    color: #94a3b8;
}

.search-placeholder {
    flex: 1;
    text-align: left;
    color: #94a3b8;
}

.search-shortcut {
    display: flex;
    gap: 0.125rem;
}

.search-shortcut kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Mobile responsive for search trigger */
@media (max-width: 768px) {
    .search-trigger {
        min-width: auto;
        padding: 0.375rem;
    }

    .search-placeholder,
    .search-shortcut {
        display: none;
    }

    .header-right {
        gap: 0.5rem;
    }
}

/* ==========================================================================
   UTILITIES PAGE - QMC Design System Styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   Bulk Action Cards
   -------------------------------------------------------------------------- */
.autoship-bulk-action {
    background: white;
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 0;
    max-width: unset;
    box-shadow: none;
    -webkit-box-shadow: none;
    margin-top: 0;
}

.autoship-bulk-action.upgrade-action {
    border-color: var(--qmc-warning, #f59e0b);
    background: var(--p-yellow-50, #fefce8);
}

.autoship-bulk-action h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--qmc-text-primary, #1f2937);
    border: none;
}

.autoship-bulk-action h2 i.pi {
    color: var(--qmc-primary, #3b82f6);
    font-size: 1.25rem;
}

.autoship-bulk-action.upgrade-action h2 i.pi {
    color: var(--qmc-warning, #f59e0b);
}

.autoship-bulk-action > p {
    font-size: 0.875rem;
    color: var(--qmc-text-primary, #1f2937);
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.autoship-bulk-action > p:last-of-type {
    margin-bottom: 1rem;
}

.autoship-bulk-action hr {
    border: none;
    border-top: 1px solid var(--qmc-border, #e5e7eb);
    margin: 1rem 0;
}

/* --------------------------------------------------------------------------
   Badge Variants
   -------------------------------------------------------------------------- */
.asc-badge-success {
    background: var(--qmc-success, #22c55e);
}

.asc-badge-danger {
    background: var(--qmc-danger, #ef4444);
}

.asc-badge-warning {
    background: var(--qmc-warning, #f59e0b);
}

.asc-badge-muted {
    background: var(--qmc-text-muted, #9ca3af);
}

/* Inline badge for titles */
.autoship-bulk-action h2 .asc-badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    min-width: auto;
    height: auto;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* --------------------------------------------------------------------------
   Bulk Notice Text
   -------------------------------------------------------------------------- */
.autoship-bulk-notice {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--qmc-text-primary, #1f2937);
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.autoship-bulk-subnotice {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--qmc-text-secondary, #6b7280);
    margin: 0 0 1rem 0;
    padding: 0;
}

/* --------------------------------------------------------------------------
   Form Fields in Bulk Actions
   -------------------------------------------------------------------------- */
.autoship-bulk-action .form-field {
    margin-bottom: 0.75rem;
}

.autoship-bulk-action .form-field.inline-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.autoship-bulk-action .form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--qmc-text-primary, #1f2937);
    cursor: pointer;
}

.autoship-bulk-action .asc-form-label {
    font-weight: 500;
}

.autoship-bulk-action .form-field input[type="number"],
.autoship-bulk-action .form-field input[type="text"],
.autoship-bulk-action .form-field select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    min-height: 2.25rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.autoship-bulk-action .form-field input:focus,
.autoship-bulk-action .form-field select:focus {
    outline: none;
    border-color: var(--qmc-primary, #3b82f6);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.autoship-bulk-action .form-field input.small-text {
    width: 80px;
}

/* --------------------------------------------------------------------------
   Radio Button Groups
   -------------------------------------------------------------------------- */
.asc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.asc-radio-group.inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.asc-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.asc-radio-option input[type="radio"] {
    margin: 0.125rem 0 0 0;
    accent-color: var(--qmc-primary, #3b82f6);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.asc-radio-option .asc-radio-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--qmc-text-primary, #1f2937);
}

.asc-radio-option .asc-radio-description {
    font-size: 0.8125rem;
    color: var(--qmc-text-secondary, #6b7280);
    margin-top: 0.125rem;
}

/* --------------------------------------------------------------------------
   Checkbox Styling
   -------------------------------------------------------------------------- */
.asc-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0.75rem 0;
}

.asc-checkbox input[type="checkbox"] {
    margin: 0;
    accent-color: var(--qmc-primary, #3b82f6);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.asc-checkbox .asc-checkbox-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--qmc-text-primary, #1f2937);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Progress Meter
   -------------------------------------------------------------------------- */
.autoship-meter {
    width: 100%;
    height: 0.5rem;
    background: var(--qmc-border, #e5e7eb);
    border-radius: 9999px;
    overflow: hidden;
    margin: 1rem 0;
}

.autoship-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--qmc-primary, #3b82f6) 0%, var(--qmc-secondary, #8b5cf6) 100%);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* --------------------------------------------------------------------------
   Action Buttons
   -------------------------------------------------------------------------- */
.autoship-bulk-action .button-primary,
.autoship-bulk-action .autoship-action {
    background: var(--qmc-primary, #3b82f6);
    border: 1px solid var(--qmc-primary, #3b82f6);
    color: white;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.autoship-bulk-action .button-primary:hover,
.autoship-bulk-action .autoship-action:hover {
    background: var(--qmc-primary-hover, #2563eb);
    border-color: var(--qmc-primary-hover, #2563eb);
}

.autoship-bulk-action .button-primary:focus,
.autoship-bulk-action .autoship-action:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.autoship-bulk-action .button-secondary,
.autoship-bulk-action .autoship-cancel-action {
    background: white;
    border: 1px solid var(--qmc-border, #e5e7eb);
    color: var(--qmc-text-secondary, #6b7280);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.autoship-bulk-action .button-secondary:hover,
.autoship-bulk-action .autoship-cancel-action:hover {
    background: var(--qmc-surface, #f8fafc);
    border-color: var(--qmc-text-muted, #9ca3af);
    color: var(--qmc-text-primary, #1f2937);
}

.autoship-bulk-action .cancel-button {
    background: var(--qmc-danger, #ef4444) !important;
    border-color: var(--qmc-danger, #ef4444) !important;
    color: white !important;
}

.autoship-bulk-action .cancel-button:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

/* Button spacing */
.autoship-bulk-action > p > button {
    margin-right: 0.5rem;
}

/* --------------------------------------------------------------------------
   Option Cards (for Activate/Deactivate explanations)
   -------------------------------------------------------------------------- */
.asc-option-card {
    background: var(--qmc-surface, #f8fafc);
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.asc-option-card strong {
    color: var(--qmc-text-primary, #1f2937);
}

.asc-option-card p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Help Text
   -------------------------------------------------------------------------- */
.autoship-bulk-action .help {
    font-size: 0.875rem;
    color: var(--qmc-text-primary, #1f2937);
    margin: 0.5rem 0;
}

/* --------------------------------------------------------------------------
   Frequency Options Section
   -------------------------------------------------------------------------- */
.autoship-bulk-action .frequency_option {
    position: relative;
    background: var(--qmc-surface, #f8fafc);
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.autoship-bulk-action .frequency_option h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--qmc-text-primary, #1f2937);
    margin: 0 0 1rem 0;
    padding: 0;
    border: none;
}

.autoship-bulk-action .frequency_option .remove-frequency {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--qmc-text-muted, #9ca3af) !important;
    opacity: 0.7;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.autoship-bulk-action .frequency_option .remove-frequency:hover {
    color: var(--qmc-danger, #ef4444) !important;
    opacity: 1;
}

.autoship-bulk-action .frequency_option .form-field {
    margin-bottom: 0.75rem;
}

.autoship-bulk-action .frequency_option label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--qmc-text-secondary, #6b7280);
    margin-bottom: 0.25rem;
}

.autoship-bulk-action .frequency_option select,
.autoship-bulk-action .frequency_option input[type="number"],
.autoship-bulk-action .frequency_option input[type="text"] {
    width: 100%;
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   Product Sync Settings
   -------------------------------------------------------------------------- */
#autoship-product-sync-settings .form-field.inline-field {
    display: block;
    margin-bottom: 1rem;
}

#autoship-product-sync-settings .form-field.inline-field label {
    display: block;
    margin-bottom: 0.375rem;
}

#autoship-product-sync-settings .form-field.inline-field input[type="checkbox"] + label,
#autoship-product-sync-settings .form-field.inline-field label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#autoship-product-sync-settings select {
    min-width: 150px;
}

.autoship-product-sync-error-container:not(:empty) {
    background: var(--qmc-danger-bg, #fee2e2);
    border: 1px solid var(--qmc-danger, #ef4444);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    color: var(--qmc-danger-text, #991b1b);
    font-size: 0.875rem;
}

/* Disable sync dialog */
#autoship-disable-sync-dialog {
    font-size: 0.875rem;
    color: var(--qmc-text-secondary, #6b7280);
    line-height: 1.6;
}

#autoship-disable-sync-dialog p {
    margin: 0 0 1rem 0;
}

/* --------------------------------------------------------------------------
   Utilities Lists
   -------------------------------------------------------------------------- */
.autoship-bulk-action ul {
    margin: 0 0 1rem 0;
    padding: 0;
    list-style: none;
}

.autoship-bulk-action ul li {
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: var(--qmc-text-secondary, #6b7280);
}

/* --------------------------------------------------------------------------
   Warning Messages
   -------------------------------------------------------------------------- */
.autoship-bulk-action p[style*="color: red"] {
    background: var(--qmc-danger-bg, #fee2e2);
    border: 1px solid var(--qmc-danger, #ef4444);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    color: var(--qmc-danger-text, #991b1b) !important;
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Section Dividers (remove hr between cards)
   -------------------------------------------------------------------------- */
#asc-settings > hr,
.wrap > hr {
    display: none;
}

/* --------------------------------------------------------------------------
   Mobile Responsiveness for Utilities
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .autoship-bulk-action {
        padding: 1rem;
    }

    .autoship-bulk-action h2 {
        font-size: 1rem;
    }

    .asc-radio-group.inline {
        flex-direction: column;
        gap: 0.75rem;
    }

    .autoship-bulk-action .form-field.inline-field {
        flex-wrap: wrap;
    }

    .autoship-bulk-action .frequency_option select,
    .autoship-bulk-action .frequency_option input[type="number"],
    .autoship-bulk-action .frequency_option input[type="text"] {
        max-width: 100%;
    }
}

/* ==========================================================================
   OPTIONS PAGE - QMC Design System Styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   Form Group Layout (Label Above Input)
   -------------------------------------------------------------------------- */
.asc-form-group {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.asc-form-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.asc-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--qmc-text-primary, #1f2937);
    margin-bottom: 0.25rem;
}

.asc-field-hint {
    font-size: 0.75rem;
    color: var(--qmc-text-muted, #9ca3af);
    margin: 0.375rem 0 0 0;
    line-height: 1.4;
}

.asc-field-hint strong {
    color: var(--qmc-text-secondary, #6b7280);
}

.asc-form-group input[type="text"],
.asc-form-group input[type="email"],
.asc-form-group input[type="url"],
.asc-form-group input[type="number"],
.asc-form-group input[type="password"],
.asc-form-group select,
.asc-form-group textarea {
    width: 100%;
    max-width: 500px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--qmc-text-primary, #1f2937);
    background-color: white;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.asc-form-group input:focus,
.asc-form-group select:focus,
.asc-form-group textarea:focus {
    outline: none;
    border-color: var(--qmc-primary, #3b82f6);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Radio Group within Form Group */
.asc-form-group .asc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.asc-form-group .asc-radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.asc-form-group .asc-radio-option input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--qmc-primary, #3b82f6);
}

.asc-form-group .asc-radio-option span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--qmc-text-primary, #1f2937);
    line-height: 1.5;
    margin-left: 0.5rem;
}

.asc-form-group .asc-radio-option span strong {
    color: var(--qmc-text-primary, #1f2937);
}

/* --------------------------------------------------------------------------
   Card Radio Selector (Big Icon Option Cards)
   -------------------------------------------------------------------------- */
.asc-card-radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.asc-card-radio {
    position: relative;
    flex: 1;
    cursor: pointer;
    display: block;
}

.asc-card-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.asc-card-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border: 2px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.5rem;
    background: white;
    transition: all 0.15s ease;
    text-align: center;
    min-height: 120px;
}

.asc-card-radio-content:hover {
    border-color: var(--qmc-primary, #3b82f6);
    background: rgba(59, 130, 246, 0.02);
}

.asc-card-radio input[type="radio"]:checked + .asc-card-radio-content {
    border-color: var(--qmc-primary, #3b82f6);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 0 1px var(--qmc-primary, #3b82f6);
}

.asc-card-radio-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(59, 130, 246, 0.08);
    color: var(--qmc-primary, #3b82f6);
    font-size: 1.25rem;
}

.asc-card-radio input[type="radio"]:checked + .asc-card-radio-content .asc-card-radio-icon {
    background: var(--qmc-primary, #3b82f6);
    color: white;
}

.asc-card-radio-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--qmc-text-primary, #1f2937);
    line-height: 1.3;
}

.asc-card-radio-desc {
    font-size: 0.6875rem;
    color: var(--qmc-text-muted, #9ca3af);
    line-height: 1.4;
    margin-top: -0.25rem;
}

.asc-card-radio input[type="radio"]:checked + .asc-card-radio-content .asc-card-radio-label {
    color: var(--qmc-primary, #3b82f6);
}

@media (max-width: 768px) {
    .asc-card-radio-group {
        flex-direction: column;
    }
}

/* --------------------------------------------------------------------------
   Side-by-Side Editors Row (full-width cards)
   -------------------------------------------------------------------------- */
.asc-editors-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.asc-editors-row .asc-form-group {
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .asc-editors-row {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Nested Options Section
   -------------------------------------------------------------------------- */
.asc-nested-options {
    background: var(--qmc-surface, #f8fafc);
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.375rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.asc-subsection-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--qmc-text-primary, #1f2937);
    margin: 0 0 1rem 0;
    padding: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
}

.asc-option-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--qmc-text-primary, #1f2937);
    margin: 0.75rem 0 0.5rem 0;
}

/* --------------------------------------------------------------------------
   Options Page Form Table Styling
   -------------------------------------------------------------------------- */
.asc-settings-column .form-table {
    margin-top: 0;
    border-collapse: collapse;
}

.asc-settings-column .form-table tr {
    border-bottom: 1px solid var(--qmc-border-light, #f3f4f6);
}

.asc-settings-column .form-table tr:last-child {
    border-bottom: none;
}

.asc-settings-column .form-table th {
    padding: 1rem 1rem 1rem 0;
    vertical-align: top;
    font-weight: 500;
    color: var(--qmc-text-primary, #1f2937);
    font-size: 0.875rem;
    width: 200px;
}

.asc-settings-column .form-table td {
    padding: 1rem 0;
    vertical-align: top;
}

.asc-settings-column .form-table td p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--qmc-text-secondary, #6b7280);
    line-height: 1.5;
}

.asc-settings-column .form-table td p:last-child {
    margin-bottom: 0;
}

/* Radio and checkbox styling in form tables */
.asc-settings-column .form-table input[type="radio"],
.asc-settings-column .form-table input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--qmc-primary, #3b82f6);
}

.asc-settings-column .form-table label {
    font-size: 0.875rem;
    color: var(--qmc-text-primary, #1f2937);
    cursor: pointer;
}

/* Help text wrapper */
.asc-settings-column .help-text-wrapper {
    background: var(--qmc-surface, #f8fafc);
    border: 1px solid var(--qmc-border-light, #f3f4f6);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--qmc-text-secondary, #6b7280);
}

.asc-settings-column .help-text-wrapper label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--qmc-text-secondary, #6b7280);
}

/* Select dropdowns */
.asc-settings-column .form-table select {
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--qmc-text-primary, #1f2937);
    background-color: white;
}

.asc-settings-column .form-table select:focus {
    outline: none;
    border-color: var(--qmc-primary, #3b82f6);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* WYSIWYG editor wrapper */
.asc-settings-column .html-editor-wrapper {
    margin-bottom: 0.5rem;
}

/* Virtual coupon note */
.asc-settings-column .virtual-coupon-override-note {
    background: var(--qmc-surface, #f8fafc);
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
}

.asc-settings-column .virtual-coupon-override-note p {
    margin: 0 0 0.25rem 0;
}

.asc-settings-column .virtual-coupon-override-note small {
    font-size: 0.8125rem;
    color: var(--qmc-text-secondary, #6b7280);
    line-height: 1.5;
}

/* Upsell carousel wrapper */
.asc-settings-column .autoship_upsell_disable_carousel_js_wrap {
    margin-left: 1.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--qmc-border, #e5e7eb);
}

.asc-settings-column{
    margin-bottom: 1rem;
}

#qmc-product-detail > div > div.page-header.ng-star-inserted > div.header-right > p-tag{
    margin-right: 0.75rem;
}

#asc-settings .ahstatus i.icon-asc::before{
    line-height: 1rem;
}

/* --------------------------------------------------------------------------
   QMC Dialog / Overlay z-index fix
   WordPress admin sidebar (#adminmenuwrap) uses z-index: 9990.
   PrimeNG overlays must sit above it so modals (e.g. Event Logs) and
   dropdown panels (e.g. Order Items combobox) are not hidden behind
   the sidebar on the scheduled-order edit view.
   -------------------------------------------------------------------------- */
.p-dialog-mask,
.p-overlay-mask,
.cdk-overlay-container {
    z-index: 99999 !important;
}

.p-autocomplete-overlay,
.p-dropdown-overlay,
.p-multiselect-overlay,
.p-select-overlay,
.p-overlay,
.p-popover,
.p-connected-overlay {
    z-index: 99999 !important;
}

/* --------------------------------------------------------------------------
   QMC Overlay width constraint
   The QMC component sets .product-search-panel { width: calc(100vw - 350px) !important }
   which overflows the viewport when the overlay left is corrected by JS.
   Override with inherit so the panel respects the overlay container width
   set by qmc-overlay-fix.js.
   -------------------------------------------------------------------------- */
body.wp-admin .product-search-panel {
    width: inherit !important;
    min-width: inherit !important;
    max-width: 100% !important;
}

/* --------------------------------------------------------------------------
   Snooze Settings: NEW badge + Action Row Preview
   -------------------------------------------------------------------------- */
.asc-badge-new {
    background: var(--qmc-success, #22c55e);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.125rem 0.5rem;
    height: auto;
    min-width: auto;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.asc-snooze-action-preview {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: var(--qmc-bg-muted, #f8fafc);
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.375rem;
}

.asc-snooze-preview-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.75px;
    color: var(--qmc-text-secondary, #6b7280);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.asc-snooze-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.asc-snooze-preview-action {
    color: var(--qmc-primary, #3b82f6);
    font-size: 0.875rem;
    font-weight: 500;
}

.asc-snooze-preview-snooze {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.asc-snooze-preview-sep {
    color: var(--qmc-text-secondary, #cbd5e1);
    font-size: 0.875rem;
}

.asc-alert.asc-alert-info {
    display: flex;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 0.375rem;
    color: var(--qmc-text-primary, #1f2937);
}

.asc-alert.asc-alert-info i.pi {
    color: var(--qmc-primary, #3b82f6);
    margin-top: 0.125rem;
}

.asc-alert.asc-alert-warning {
    display: flex;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 0.375rem;
    color: var(--qmc-text-primary, #1f2937);
}

.asc-alert.asc-alert-warning i.pi {
    color: #d97706;
    margin-top: 0.125rem;
}

.asc-alert-content p {
    font-size: 0.875rem;
    line-height: 1.5;
}

.asc-alert-content small {
    font-size: 0.8125rem;
    color: var(--qmc-text-secondary, #6b7280);
    line-height: 1.5;
}

/* Muted state for Snooze extra options when Snooze is disabled */
.autoship_snooze_extra_options.is-muted {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.autoship_snooze_extra_options.is-muted input,
.autoship_snooze_extra_options.is-muted select,
.autoship_snooze_extra_options.is-muted textarea,
.autoship_snooze_extra_options.is-muted button {
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Plugin Default Snooze Frequencies Panel
   -------------------------------------------------------------------------- */
.asc-snooze-frequencies-panel {
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.5rem;
    padding: 1rem;
    background: var(--qmc-bg-muted, #f8fafc);
}

.asc-snooze-frequencies-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.75px;
    color: var(--qmc-text-secondary, #6b7280);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
}

.asc-snooze-frequencies-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.asc-snooze-frequency-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    background: white;
    border: 1px solid var(--qmc-border, #e5e7eb);
    border-radius: 0.375rem;
}

.asc-snooze-freq-field {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.asc-snooze-freq-field label {
    font-size: 0.8125rem;
    color: var(--qmc-text-secondary, #6b7280);
    margin: 0;
    font-weight: 500;
}

.asc-snooze-frequencies-panel select.asc-snooze-freq-type {
    min-width: 120px;
    width: auto;
    padding: 0.375rem 1.75rem 0.375rem 0.5rem;
    border: 1px solid var(--qmc-border, #cbd5e1);
    border-radius: 0.25rem;
    background: white;
    font-size: 0.875rem;
}

.asc-snooze-freq-every {
    width: 70px;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--qmc-border, #cbd5e1);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.asc-snooze-freq-label-field {
    flex: 1;
}

.asc-snooze-freq-label {
    flex: 1;
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--qmc-border, #cbd5e1);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.asc-snooze-freq-remove {
    background: transparent;
    border: none;
    color: var(--qmc-danger, #ef4444);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.15s;
}

.asc-snooze-freq-remove:hover {
    background: rgba(239, 68, 68, 0.1);
}

.asc-snooze-freq-add {
    width: 100%;
    padding: 0.625rem;
    background: white;
    border: 1px dashed var(--qmc-border, #cbd5e1);
    border-radius: 0.375rem;
    color: var(--qmc-primary, #3b82f6);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.asc-snooze-freq-add:hover {
    border-color: var(--qmc-primary, #3b82f6);
    background: rgba(59, 130, 246, 0.04);
}

.asc-snooze-frequencies-note {
    margin-top: 0.875rem;
    padding: 0.75rem 0.875rem;
    background: rgba(250, 204, 21, 0.12);
    border-left: 3px solid #facc15;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    color: var(--qmc-text-primary, #1f2937);
    line-height: 1.5;
}