:root {
    --stop-sales-red: #b8384a;
}

.rate-plan-legend--container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
}

.rate-plan-legend--item {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rate-plan-legend--divider {
    width: 1px;
    height: 16px;
    background: #ddd;
}

.rate-plan-legend--indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.rate-plan-legend--indicator-striped {
    background: var(--stop-sales-red);
}

.rate-plan-legend--indicator-solid {
    height: 4px;
    border-radius: 1px;
    border: none;
}

.rate-plan-event--dashes {
    display: flex;
    width: calc(100% + 12px);
    margin: 2px -6px 0 -6px;
    gap: 1px;
    height: 5px;
}

.rate-plan-event--dash {
    flex: 1;
    height: 5px;
}

.rate-plan-event--container {
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    --event-text-color: inherit;
}

.rate-plan-event--rate {
    font-weight: 700;
    font-size: 13px;
    padding: 0 4px;
    line-height: 1;
    color: var(--event-text-color);
}

.rate-plan-event--stop-sales-pattern {
    background: var(--stop-sales-red);
    background-attachment: fixed;
    border: none;
    padding: 0;
    box-sizing: border-box;
}

.rate-plan-event--stop-sales-pattern.dark {
    background: var(--stop-sales-red);
}

.rate-plan-event--no-restrictions {
    background: transparent;
    border: none;
    padding: 0;
    box-sizing: border-box;
}

.rate-plan-tooltip--wrapper {
    padding: 8px 10px;
    min-width: 190px;
    font-size: 12px;
}

.rate-plan-tooltip--header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.rate-plan-tooltip--header-label {
    font-weight: 700;
    font-size: 13px;
}

.rate-plan-tooltip--row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.rate-plan-tooltip--row-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.rate-plan-tooltip--row-indicator-striped {
    background: var(--stop-sales-red);
    border: 1px solid #ddd;
}

.rate-plan-tooltip--row-indicator-solid {
    border: none;
}

.rate-plan-tooltip--row-label {
}

.rate-plan-tooltip--row-value {
    margin-left: auto;
    font-weight: 600;
    padding-left: 12px;
}

.rate-plan-tooltip--no-restrictions {
    font-size: 13px;
    padding: 4px 0;
}
