/* DMS Offers – prijsgeschiedenis & prijsalert (v2.11.23) */
.dms-price-tools {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.dms-price-tools.is-preparing {
    position: absolute !important;
    left: -10000px !important;
    top: 0 !important;
    width: min(100%, 760px) !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.dms-price-tool-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.dms-price-tool-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid #E3E6E8;
    border-radius: 9px;
    background: #fff;
    color: #343B45;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.dms-price-tool-button:hover {
    border-color: #C9CED3;
    background: #F7F8F9;
    color: #1D232B;
}

.dms-price-tool-button:focus-visible {
    outline: 2px solid #E71F63;
    outline-offset: 2px;
}

.dms-price-tool-button.is-active {
    border-color: #E71F63;
    background: #FFF8FB;
    color: #1D232B;
}

.dms-price-tool-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #68717B;
}

.dms-price-tool-button.is-active .dms-price-tool-icon {
    color: #E71F63;
}

.dms-price-tool-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dms-price-tool-panel {
    margin-top: 9px;
    padding: 17px 16px 14px;
    border: 1px solid #E3E6E8;
    border-radius: 11px;
    background: #fff;
    color: #343B45;
}

.dms-price-tool-panel[hidden] {
    display: none !important;
}

.dms-price-tool-panel-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.dms-price-tool-panel-head strong {
    color: #1D232B;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.dms-price-tool-panel-head span,
.dms-price-tool-footnote,
.dms-history-state,
.dms-history-notice,
.dms-history-empty {
    color: #737C86;
    font-size: 11px;
    line-height: 1.5;
}

.dms-price-tool-footnote {
    margin: 10px 0 0;
}

/* Prijsgeschiedenis – rustige kop met weergaveschakelaar */
.dms-history-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

.dms-price-tool-panel-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dms-history-view-slot {
    min-height: 30px;
}

/* Prijsgeschiedenis */
.dms-history-series-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 12px;
}

.dms-history-primary-series {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.dms-history-compare-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dms-history-comparison-summary {
    min-width: 0;
    margin: 0;
    color: #8A9199;
    font-size: 10.5px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dms-history-compare-label {
    color: #7A838D;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.dms-history-legend {
    display: flex;
    align-items: center;
    gap: 7px;

    width: auto;
    margin: 0;
    padding: 1px 0 3px;

    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.dms-history-legend-button {
    --dms-series-color: #68717B;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    flex: 0 0 auto;

    min-height: 29px;
    padding: 5px 9px;

    border: 1px solid #E1E4E7;
    border-radius: 999px;
    background: #FFFFFF;

    color: #68717B;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;
    white-space: nowrap;

    transition:
        border-color .18s ease,
        background-color .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.dms-history-legend-button:hover {
    border-color: #C8CDD2;
    color: #343B45;
}

.dms-history-legend-button:focus-visible {
    outline: 2px solid rgba(231, 31, 99, .30);
    outline-offset: 2px;
}

.dms-history-legend-button.is-active {
    border-color: var(--dms-series-color);
    background: color-mix(in srgb, var(--dms-series-color) 5%, #FFFFFF);
    color: #343B45;
    box-shadow: none;
}

.dms-history-legend-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border: 2px solid var(--dms-series-color);
    border-radius: 50%;
    background: #FFFFFF;
}

.dms-history-legend-button.is-active .dms-history-legend-dot {
    background: var(--dms-series-color);
}

.dms-history-primary-series .dms-history-legend-button {
    min-height: 31px;
    padding: 6px 11px;
    font-size: 10.5px;
}

.dms-history-view-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

.dms-history-view-switch {
    display: inline-flex;
    padding: 2px;
    border: 1px solid #E1E4E7;
    border-radius: 8px;
    background: #F7F8F9;
}

.dms-history-view-button {
    min-height: 26px;
    padding: 4px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #68717B;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.dms-history-view-button:hover {
    color: #343B45;
}

.dms-history-view-button:focus-visible {
    outline: 2px solid rgba(231, 31, 99, .30);
    outline-offset: 1px;
}

.dms-history-view-button.is-active {
    background: #FFFFFF;
    color: #1D232B;
    box-shadow: 0 1px 3px rgba(29, 35, 43, .08);
}

.dms-history-chart-wrap {
    width: 100%;
    min-height: 258px;
    padding: 2px 0 11px;
    box-sizing: border-box;

    /*
     * v2.11.23: de grafiek blijft altijd binnen de normale container.
     * De laatste maximaal 12 meetdagen worden door JavaScript in dezelfde
     * vaste chartbreedte geplaatst; horizontaal scrollen is niet meer nodig.
     */
    overflow: hidden;
}

.dms-history-chart-wrap.is-bars,
.dms-history-chart-wrap.is-lines {
    overflow: hidden;
}

.dms-history-chart {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 245px;
    min-height: 245px;
}

.dms-history-grid line {
    stroke: #ECEEF0;
    stroke-width: 1;
}

.dms-history-grid text,
.dms-history-x-label {
    fill: #7A838D;
    font-size: 11px;
    font-family: inherit;
}

.dms-history-area {
    fill: rgba(231, 31, 99, .07);
    stroke: none;
}

.dms-history-line {
    fill: none;
    stroke: #E71F63;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dms-history-series-line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.dms-history-series-line.is-lowest {
    stroke-width: 2.6;
}


.dms-history-bar {
    opacity: .88;
    transition: opacity .15s ease;
}

.dms-history-bar:hover {
    opacity: 1;
}

.dms-history-bar.is-lowest {
    opacity: .96;
}

.dms-history-dots circle,
.dms-history-series-dot {
    fill: #FFFFFF;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.dms-history-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #ECEEF0;
}

.dms-history-stat {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 8px;
    background: #F7F8F9;
}

.dms-history-stat:first-child,
.dms-history-stat:last-child {
    padding-left: 11px;
    padding-right: 11px;
}

.dms-history-stat + .dms-history-stat {
    border-left: 0;
}

.dms-history-stat span {
    display: block;
    margin-bottom: 3px;
    color: #68717B;
    font-size: 10px;
    font-weight: 600;
}

.dms-history-stat strong {
    display: block;
    color: #1D232B;
    font-size: 16px;
    line-height: 1.2;
}

.dms-history-stat small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #8A929A;
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dms-history-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding-top: 0;
    border-top: 0;
    color: #8A929A;
    font-size: 10px;
    line-height: 1.45;
}

.dms-history-footer-separator {
    color: #B2B8BE;
}

@media (max-width: 520px) {
    .dms-history-panel-head {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dms-history-view-slot {
        min-height: 0;
    }

    .dms-history-view-controls {
        justify-content: flex-start;
    }

    .dms-history-compare-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .dms-history-legend {
        padding-bottom: 5px;
    }

    .dms-history-footer {
        display: block;
    }

    .dms-history-footer span {
        display: block;
    }

    .dms-history-footer-separator {
        display: none !important;
    }

    .dms-history-footer span + span:not(.dms-history-footer-separator) {
        margin-top: 2px;
    }
}

.dms-history-notice,
.dms-history-empty {
    padding: 13px 14px;
    border: 1px solid #ECEEF0;
    border-radius: 9px;
    background: #F8F9FA;
}

/* Prijsalert */
.dms-price-alert-form {
    margin: 0;
}

.dms-alert-current {
    margin-bottom: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #F4F5F6;
    color: #4D5660;
    font-size: 11px;
    font-weight: 600;
}

.dms-alert-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) auto;
    gap: 9px;
    align-items: end;
}

.dms-alert-fields label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}

.dms-alert-fields label > span {
    color: #5F6872;
    font-size: 10px;
    font-weight: 600;
}

.dms-alert-fields input[type="email"],
.dms-alert-fields input[type="number"] {
    width: 100%;
    height: 46px;
    min-height: 46px;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid #D9DDE1;
    border-radius: 8px;
    background: #fff;
    color: #1D232B;
    font: inherit;
    font-size: 12px;
    box-shadow: none;
}

.dms-alert-fields input:focus {
    border-color: #E71F63;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(231, 31, 99, .10);
}

.dms-alert-price-input {
    display: flex;
    align-items: stretch;
}

.dms-alert-price-input > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid #D9DDE1;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #F7F8F9;
    color: #59626C;
    font-size: 12px;
}

.dms-alert-price-input input[type="number"] {
    border-radius: 0 8px 8px 0;
}

.dms-alert-submit {
    appearance: none;
    -webkit-appearance: none;
    align-self: end;
    height: 46px;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1px solid #E71F63;
    border-radius: 8px;
    background: #E71F63;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
    white-space: nowrap;
}

.dms-alert-submit:hover {
    border-color: #C5164D;
    background: #C5164D;
}

.dms-alert-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.dms-alert-consent {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 11px 0 0;
    color: #68717B;
    font-size: 10px;
    line-height: 1.45;
}

.dms-alert-consent input {
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: #E71F63;
}

.dms-alert-consent a {
    color: #E71F63;
    text-decoration: none;
}

.dms-alert-consent a:hover {
    text-decoration: underline;
}

.dms-alert-message {
    min-height: 0;
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.45;
}

.dms-alert-message:empty {
    display: none;
}

.dms-alert-message.is-error {
    padding: 9px 11px;
    border-radius: 8px;
    background: #FFF3F5;
    color: #A81745;
}

.dms-alert-message.is-success {
    padding: 9px 11px;
    border-radius: 8px;
    background: #F3F8F4;
    color: #356544;
}

@media (max-width: 767px) {
    .dms-price-tool-button {
        width: 100%;
        padding-left: 9px;
        padding-right: 9px;
        font-size: 11px;
    }

    .dms-price-tool-panel {
        padding: 13px;
    }

    .dms-history-legend {
        margin: 0;
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .dms-history-legend-button {
        min-height: 29px;
        padding: 6px 9px;
        font-size: 9px;
    }

    .dms-history-chart-wrap {
        min-height: 223px;
        padding-bottom: 11px;
    }

    .dms-history-chart {
        height: 210px;
        min-height: 210px;
    }

    .dms-history-stats {
        grid-template-columns: 1fr;
        gap: 7px;
        padding-top: 9px;
    }

    .dms-history-stat,
    .dms-history-stat:first-child,
    .dms-history-stat:last-child {
        padding: 9px 10px;
    }

    .dms-history-stat + .dms-history-stat {
        border-top: 0;
        border-left: 0;
    }

    .dms-alert-fields {
        grid-template-columns: 1fr;
    }

    .dms-alert-submit {
        width: 100%;
    }
}

.dms-price-alert-global-message {
    margin-bottom: 9px;
    padding: 9px 11px;
    border: 1px solid #E3E6E8;
    border-radius: 8px;
    background: #F7F8F9;
    color: #59626C;
    font-size: 11px;
    line-height: 1.45;
}

.dms-price-alert-global-message.is-success {
    border-color: #DDE9E0;
    background: #F3F8F4;
    color: #356544;
}
