/**
 * REVISED CSS for the public-facing Vismont Hub.
 */

/* --- Common Styles --- */
:root {
    --vmh-primary-color: #0073aa;
    --vmh-text-color: #333;
    --vmh-border-color: #ccc;
    --vmh-bg-light: #fff;
    --vmh-bg-hover: #f0f0f1;
}

.vmh-main-wrapper { font-family: inherit; color: var(--vmh-text-color); text-align: center; margin: 20px auto; }

.vmh-header-content {
    margin-bottom: 30px;
}
.vmh-header-content .vmh-main-heading {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: var(--vmh-text-color);
}
.vmh-header-content .vmh-heading-description {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 3rem;
    color: #555;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.vmh-controls-container {
    position: relative;
    margin-bottom: 30px;
}

.vmh-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 21;
}
.vmh-toolbar-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.vmh-toolbar-group--col3 {
    margin-left: auto;
}
.vmh-toolbar-group--col2 { margin: 0; }
.vmh-toolbar-group--col3 { margin-right: 0; }
.vmh-toolbar-group--col4 { display: flex; align-items: center; }

.vmh-view-switcher { display: inline-flex; border: 1px solid var(--vmh-border-color); border-radius: 5px; overflow: hidden; }
.vmh-view-switcher .vmh-view-button { background: var(--vmh-bg-light); border: none; padding: 8px 12px; cursor: pointer; color: var(--vmh-primary-color); line-height: 1; transition: background-color 0.2s ease, color 0.2s ease; display: flex; align-items: center; justify-content: center; }
.vmh-view-switcher .vmh-view-button:first-child { border-right: 1px solid var(--vmh-border-color); }
.vmh-view-switcher .vmh-view-button:hover { background: var(--vmh-bg-hover); }
.vmh-view-switcher .vmh-view-button .dashicons { font-size: 20px; width: 20px; height: 20px; margin-right: 5px; color: var(--vmh-primary-color); }
.vmh-view-switcher .vmh-view-button.active { background: var(--vmh-primary-color); color: var(--vmh-bg-light); }
.vmh-view-switcher .vmh-view-button.active .dashicons { color: var(--vmh-bg-light); }

.vmh-search-wrapper { position: relative; }
.vmh-feature-search { padding: 10px; border: 1px solid var(--vmh-border-color); border-radius: 5px; width: 100%; max-width: 250px; padding-right: 35px; }
.vmh-search-wrapper::after { content: '\f179'; font-family: 'dashicons'; position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: #a0a5aa; pointer-events: none; font-size: 20px; }
.vmh-billing-cycle-switcher { display: inline-flex; border: 1px solid var(--vmh-primary-color); border-radius: 5px; overflow: hidden; flex-shrink: 0; }
.vmh-billing-cycle-switcher .vmh-button { background: var(--vmh-bg-light); border: none; padding: 10px 15px; cursor: pointer; border-left: 1px solid var(--vmh-primary-color); transition: background-color 0.2s ease, color 0.2s ease; font-size: 14px; color: var(--vmh-primary-color); }
.vmh-billing-cycle-switcher .vmh-button:first-child { border-left: none; }
.vmh-billing-cycle-switcher .vmh-button:hover { background: var(--vmh-bg-hover); }
.vmh-billing-cycle-switcher .vmh-button.active { background: var(--vmh-primary-color); color: var(--vmh-bg-light); }
.vmh-billing-cycle-switcher .vmh-button.vmh-hidden, .vmh-hidden { display: none; }
.vmh-feature-item.vmh-feature-hidden { display: none; }
.vmh-cta-button { display: block; width: 100%; padding: 12px; background: var(--vmh-primary-color); color: var(--vmh-bg-light); text-decoration: none; border-radius: 5px; font-weight: bold; transition: background-color 0.2s ease; box-sizing: border-box; }
.vmh-cta-button:hover { background: #005a87; }

/* **START: FIX - Added fallback values for custom properties.** */
.vmh-ribbon-horizontal {
    position: absolute;
    padding: 6px 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 1.5;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: var(--vmh-ribbon-bg-color, #d9534f);
    color: var(--vmh-ribbon-text-color, #ffffff);
    white-space: nowrap;
}
.vmh-ribbon-horizontal::after {
    content: '';
    position: absolute;
    top: 0;
    right: -13px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 14px;
    border-left-color: var(--vmh-ribbon-bg-color, #d9534f);
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-right-color: transparent;
}
/* **END: FIX** */

.vmh-feature-info { position: relative; display: inline-flex; align-items: center; cursor: help; margin-left: 10px; }
.vmh-feature-info .dashicons { font-size: 16px; width: 16px; height: 16px; vertical-align: middle; color: var(--vmh-primary-color); }
.vmh-feature-info .vmh-tooltip { visibility: hidden; width: 220px; background-color: #333; color: #fff; text-align: center; border-radius: 6px; padding: 8px; position: absolute; z-index: 101; bottom: 125%; right: 50%; transform: translateX(50%); opacity: 0; transition: opacity 0.3s; font-size: 12px; font-weight: normal; line-height: 1.4; }
.vmh-feature-info:hover .vmh-tooltip { visibility: visible; opacity: 1; }
.vmh-pricing-table, .vmh-grid-scroll-wrapper, .vmh-list-view-wrapper { transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out; }
.vmh-style-list .vmh-grid-scroll-wrapper, .vmh-style-comparison .vmh-list-view-wrapper { display: none; visibility: hidden; opacity: 0; }
.vmh-style-list .vmh-list-view-wrapper, .vmh-style-comparison .vmh-grid-scroll-wrapper { visibility: visible; opacity: 1; }
.vmh-tier-tagline { font-size: 14px; color: #6b7280; margin: 0; font-weight: normal; min-height: 1.2em; }
.vmh-price-period--lifetime { font-weight: 600; color: #111827; }

/* --- New Unified Filter Popover Styles --- */
.vmh-filters-wrapper { position: relative; display: inline-block; }
.vmh-filters-button { background: var(--vmh-bg-light); border: 1px solid var(--vmh-border-color); border-radius: 5px; padding: 8px 12px; cursor: pointer; color: var(--vmh-primary-color); font-size: 14px; line-height: 1; display: inline-flex; align-items: center; gap: 5px; transition: background-color 0.2s ease, color 0.2s ease; position: relative; }
.vmh-filters-button:hover { background: var(--vmh-bg-hover); }
.vmh-filters-button .dashicons { font-size: 18px; color: var(--vmh-primary-color); }

.vmh-filter-badge { position: absolute; top: -5px; right: -5px; background-color: #d63638; color: white; border-radius: 50%; width: 10px; height: 10px; display: block; }

.vmh-filters-popover { display: none; position: absolute; top: 110%; left: 50%; transform: translateX(-50%); width: 380px; max-width: 90vw; background-color: var(--vmh-bg-light); border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 100; text-align: left; }
.vmh-filters-popover.is-open { display: block; }

.vmh-popover-header { padding: 15px; border-bottom: 1px solid #eee; }
.vmh-popover-header h3 { margin: 0 0 5px 0; font-size: 16px; font-weight: 600; color: #111827; }
.vmh-popover-header .vmh-popover-status { margin: 0; font-size: 15px; color: #6b7280; text-align: center; }

.vmh-popover-top-actions { padding: 15px; border-bottom: 1px solid #eee; background-color: #f9f9f9; }

.vmh-popover-section { padding: 15px; border-bottom: 1px solid #eee; }
.vmh-popover-section:last-child { border-bottom: none; }
.vmh-popover-section > h4 { margin: 0 0 15px 0; font-size: 14px; font-weight: 600; }

.vmh-popover-scrollable-list { max-height: 150px; overflow-y: auto; padding-right: 10px; }
.vmh-popover-scrollable-list ul { list-style: none; margin: 0; padding: 0; }
.vmh-popover-scrollable-list li { padding: 2px 0; }
.vmh-popover-scrollable-list li label { display: flex; align-items: center; gap: 8px; font-weight: normal; cursor: pointer; font-size: 14px; }
.vmh-popover-scrollable-list li label input[type="checkbox"] { margin: 0; }

.vmh-filters-popover .vmh-button {
    width: 100%;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    box-sizing: border-box;
    border-style: solid;
    border-width: 1px;
}

.vmh-filters-popover .vmh-button-primary {
    background-color: var(--vmh-primary-color);
    color: var(--vmh-bg-light);
    border-color: var(--vmh-primary-color);
}
.vmh-filters-popover .vmh-button-primary:hover {
    background-color: #005a87;
}
.vmh-filters-popover .vmh-button-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vmh-filters-popover .vmh-button-secondary {
    background: var(--vmh-bg-hover);
    border-color: var(--vmh-border-color);
    color: var(--vmh-text-color);
    margin-top: 15px;
}
.vmh-filters-popover .vmh-button-secondary:hover {
    background-color: #e5e7eb;
}


/* --- Highlight Differences and Tier/Message Styles --- */
.vmh-highlight-diff-wrapper { display: flex; align-items: center; justify-content: flex-start; width: 100%; }
.vmh-highlight-diff-wrapper { display: none; }
.vmh-style-comparison.vmh-is-comparing .vmh-highlight-diff-wrapper { display: flex; }
.vmh-highlight-diff-wrapper label { display: flex; align-items: center; gap: 8px; font-weight: normal; cursor: pointer; font-size: 14px; }
.vmh-highlight-diff-wrapper input[type="checkbox"] { margin: 0; }
.vmh-feature-row-faded { opacity: 0.3; transition: opacity 0.3s ease-in-out; }
.vmh-feature-row-faded:hover { opacity: 1; }

.vmh-tier-is-hidden { display: none !important; }

.vmh-table-is-hidden { display: none !important; }

.vmh-style-comparison .vmh-col-is-hidden {
    flex-grow: 0 !important;
    flex-basis: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
}

.vmh-no-tiers-message {
    border: 1px dashed var(--vmh-border-color);
    padding: 40px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
    color: #555;
    font-size: 16px;
}
.vmh-no-tiers-message span {
    display: block;
    font-size: 13px;
    margin-top: 8px;
    color: #777;
}


/* ==========================================================================
   STYLE 1: List Style (Default)
   ========================================================================== */
.vmh-style-list .vmh-list-view-wrapper { position: relative; }

.vmh-style-list .vmh-pricing-table {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    margin: 0;
    padding-bottom: 20px;
    max-width: 100%;
}

.vmh-style-list .vmh-tier { flex: 0 0 280px; max-width: 420px; margin: 0 10px 20px 10px; position: relative; --vmh-highlight-color: #0073aa; }
.vmh-style-list .vmh-tier:hover { z-index: 10; }

.vmh-tier-inner-wrap {
    background: var(--vmh-bg-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.vmh-tier-highlighted .vmh-tier-inner-wrap { border: 10px solid var(--vmh-highlight-color); }
.vmh-tier:hover .vmh-tier-inner-wrap { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.vmh-style-list .vmh-tier-header { position: relative; padding: 20px 30px; }
.vmh-style-list .vmh-tier-header h3 { margin: 0; margin-top: 25px; font-size: 26px; font-weight: bold; }
.vmh-style-list .vmh-tier-header .vmh-tier-tagline { margin-top: 4px; }
.vmh-style-list .vmh-ribbon-horizontal { top: 10px; left: 0; }
.vmh-tier-highlighted .vmh-ribbon-horizontal { left: 0; }
.vmh-style-list .vmh-tier-price, .vmh-style-list .vmh-tier-footer { padding: 20px 30px; }
.vmh-style-list .vmh-tier-price { padding-top: 15px; }
.vmh-style-list .vmh-price-value { font-size: 42px; font-weight: 700; line-height: 1; color: #000; }
.vmh-style-list .vmh-price-period { font-size: 14px; color: #666; min-height: 1.2em; }
.vmh-style-list .vmh-tier-features { list-style: none; padding: 0; margin: 0 0 20px 0; text-align: center; flex-grow: 1; }
.vmh-style-list .vmh-feature-item { padding: 10px 25px; border-bottom: 1px solid #eee; box-sizing: border-box; }
.vmh-style-list .vmh-feature-item:last-child { border-bottom: none; }
.vmh-style-list .vmh-tier-footer { margin-top: auto; padding-top: 0; }

/* --- Carousel Layout Styles --- */
.vmh-style-list .vmh-pricing-table.vmh-layout-carousel {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.vmh-style-list .vmh-pricing-table.vmh-layout-carousel::-webkit-scrollbar { display: none; }

.vmh-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.vmh-scroll-arrow:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.vmh-scroll-arrow .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--vmh-primary-color);
}
.vmh-list-view-wrapper.has-scroll .vmh-scroll-arrow { display: inline-flex; }
.vmh-scroll-arrow--left { left: -22px; }
.vmh-scroll-arrow--right { right: -22px; }
.vmh-scroll-arrow.vmh-arrow-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   STYLE 2: Comparison Grid Style (REVISED)
   ========================================================================== */
.vmh-style-comparison .vmh-grid-scroll-wrapper { display: flex; justify-content: center; }
.vmh-grid-scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vmh-style-comparison .vmh-comparison-grid { display: block; width: max-content; max-width: none; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); border: 1px solid #e5e7eb; background-color: #f9fafb }
.vmh-style-comparison .vmh-grid-header-row, .vmh-style-comparison .vmh-grid-feature-row, .vmh-style-comparison .vmh-grid-footer-row { display: flex; width: auto; }
.vmh-style-comparison .vmh-grid-cell { box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: auto; border-bottom: 1px solid #e5e7eb; border-left: 1px solid #e5e7eb; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); padding: 15px 10px; }
.vmh-style-comparison .vmh-grid-cell:first-child { position: -webkit-sticky; position: sticky; left: 0; z-index: 6; background-color: #f9fafb; border-right: 1px solid #e5e7eb; }
.vmh-style-comparison .vmh-grid-header-row .vmh-grid-cell:first-child, .vmh-style-comparison .vmh-grid-feature-row .vmh-grid-cell:first-child { box-shadow: 2px 0 5px rgba(0,0,0,0.05); }
.vmh-style-comparison .vmh-grid-footer-row { position: -webkit-sticky; position: sticky; bottom: 0; z-index: 1; background-color: var(--vmh-bg-light); }
.vmh-style-comparison .vmh-grid-footer-row .vmh-grid-cell:first-child { z-index: 7; }

.vmh-style-comparison .vmh-grid-features-header { font-size: 1.25em; font-weight: 700; }
.vmh-style-comparison .vmh-grid-features-header, .vmh-style-comparison .vmh-grid-feature-name, .vmh-style-comparison .vmh-grid-footer-row .vmh-grid-cell:first-child { flex-basis: 180px; flex-shrink: 0; }
.vmh-style-comparison .vmh-grid-feature-name { font-weight: bold; }
.vmh-style-comparison .vmh-grid-features-header, .vmh-style-comparison .vmh-grid-feature-name { justify-content: flex-end; text-align: right; }
.vmh-style-comparison .vmh-grid-tier-header-cell, .vmh-style-comparison .vmh-grid-tier-cell, .vmh-style-comparison .vmh-grid-footer-row .vmh-grid-cell:not(:first-child) { flex: 1 1 180px; min-width: 180px; }
.vmh-style-comparison .vmh-grid-tier-header-cell { flex-direction: column; justify-content: flex-start; position: relative; --vmh-highlight-color: #0073aa; border-top: 10px solid transparent; }
.vmh-grid-col-highlighted.vmh-grid-tier-header-cell { border-top-color: var(--vmh-highlight-color); }
.vmh-style-comparison .vmh-tier-header { position: static; }
.vmh-style-comparison .vmh-grid-tier-header-cell .vmh-tier-header { padding: 15px 20px 0; }
.vmh-style-comparison .vmh-grid-tier-header-cell .vmh-tier-price { padding: 20px 20px; }
.vmh-style-comparison .vmh-ribbon-horizontal { top: 10px; left: 0; }
.vmh-style-comparison .vmh-grid-tier-header-cell h3 { margin: 0; margin-top: 15px; font-size: 20px; font-weight: 700; }
.vmh-style-comparison .vmh-grid-tier-header-cell .vmh-price-value { font-size: 32px; font-weight: 700; line-height: 1.1; }
.vmh-style-comparison .vmh-grid-tier-header-cell .vmh-price-period { font-size: 13px; color: #6b7280; }
.vmh-style-comparison .vmh-grid-feature-name { word-break: break-word; }
.vmh-style-comparison .vmh-check, .vmh-style-comparison .vmh-cross { font-size: 28px; width: 28px; height: 28px; line-height: 1; }
.vmh-style-comparison .vmh-check { color: #22c55e; }
.vmh-style-comparison .vmh-cross { color: #ef4444; }
.vmh-style-comparison .vmh-grid-footer-row .vmh-grid-cell { border-top: 2px solid #e5e7eb; }

/* **START: FIX - Added fallback values for custom properties.** */
.vmh-style-comparison .vmh-row-odd .vmh-grid-cell { background-color: var(--vmh-zebra-color-1, #f9f9f9); }
.vmh-style-comparison .vmh-row-even .vmh-grid-cell { background-color: var(--vmh-zebra-color-2, #ffffff); }
.vmh-style-comparison .vmh-row-odd .vmh-grid-cell:first-child { background-color: var(--vmh-zebra-color-1, #f3f4f6); }
.vmh-style-comparison .vmh-row-even .vmh-grid-cell:first-child { background-color: var(--vmh-zebra-color-2, #ffffff); }
/* **END: FIX** */


/* --- RESPONSIVENESS --- */
@media (max-width: 960px) {
    .vmh-toolbar { justify-content: center; }
    .vmh-toolbar-group--col3 { margin-left: 0; }
    .vmh-toolbar-group { flex-basis: auto; justify-content: center; }
    .vmh-toolbar-group--col2 { order: 3; flex-basis: 100%; margin-top: 10px; }
}

@media (max-width: 600px) {
    .vmh-toolbar-group { flex-basis: 100%; justify-content: center; }
    .vmh-toolbar-group:not(:last-child) { margin-bottom: 10px; }
    .vmh-toolbar-group--col2 { order: 2; }
    .vmh-toolbar-group--col3, .vmh-toolbar-group--col4 { order: 3; }

    .vmh-filters-popover {
        left: 0;
        transform: none;
    }
}

@media (max-width: 540px) {
    .vmh-style-list .vmh-pricing-table { display: block; overflow-x: hidden; padding-bottom: 0; }
    .vmh-style-list .vmh-tier { flex-basis: auto; margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   DODO PAYMENTS INTEGRATION STYLES
   ========================================================================== */

/* START: MODIFICATION - Adjust wrapper for full width and better spacing */
.dodo-thank-you-wrapper,
.dodo-my-subscriptions-wrapper {
    width: 100%;
    box-sizing: border-box;
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: left;
    font-size: 15px;
}
/* END: MODIFICATION */

.dodo-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden;
}
.dodo-details-table th, .dodo-details-table td {
    padding: 14px 18px;
    border: none;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.dodo-details-table tr:last-child td {
    border-bottom: none;
}
.dodo-details-table th {
    font-weight: 600;
    background-color: #f7f7f7;
}

.dodo-status {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: capitalize;
    display: inline-block;
}
.dodo-status-active { background-color: #d1f4e0; color: #147844; }
.dodo-status-canceled { background-color: #fde2e2; color: #b72121; }
.dodo-license-key {
    background-color: #eee;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: monospace;
}
.dodo-account-management {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px dashed #ccc;
    text-align: center;
}
.dodo-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--vmh-primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}
.dodo-button:hover {
    background: #005a87;
    color: #fff;
}

.dodo-license-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vmh-copy-license-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.vmh-copy-license-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}
.vmh-copy-license-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
}

#vmh-clipboard-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.3s ease;
}
#vmh-clipboard-toast.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

/* START: MODIFICATION - New and updated styles for Dodo Subscriptions Accordion */
.dodo-accordion-container {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dodo-accordion-item:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.dodo-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1em 1.25em;
    background-color: #f7f7f7;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.dodo-accordion-header:hover {
    background-color: #f0f0f1;
}

.dodo-accordion-item.is-open .dodo-accordion-header {
    background-color: #f0f0f1;
}

.dodo-accordion-product-name {
    flex-grow: 1;
    margin-right: 15px;
}

.dodo-accordion-status {
    flex-shrink: 0;
    margin: 0 auto; /* Center the status */
    padding: 0 15px;
}

.dodo-accordion-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.dodo-accordion-item.is-open .dodo-accordion-chevron {
    transform: rotate(180deg);
}

.dodo-accordion-body {
    padding: 1.25em;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

.dodo-subscription-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dodo-subscription-details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dodo-subscription-details-list li:last-child {
    border-bottom: none;
}

.dodo-subscription-details-list li strong {
    margin-right: 10px;
    color: #333;
}

/* Responsive adjustments for Accordion */
@media (max-width: 600px) {
    .dodo-my-subscriptions-wrapper {
        padding: 1em;
    }
    .dodo-accordion-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 1em;
    }
    .dodo-accordion-product-name {
        flex-basis: 100%;
        margin-right: 0;
        font-size: 1.1em;
    }
    .dodo-accordion-status {
        order: 2;
        margin-right: auto;
        padding: 0;
    }
    .dodo-accordion-chevron {
        order: 3;
    }
    .dodo-subscription-details-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
/* END: MODIFICATION */
