.cost-delay-wrapper {
    max-width: 900px;
    margin: 30px auto;
    font-family: inherit;
    padding: 20px;
}

.cost-delay-wrapper h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--gp-heading-color, #222);
}

.cost-delay-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gp-accent-color, #1e73be);
}

.cost-delay-tabs .tab {
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: #efefef;
    border: none;
    padding: 10px 30px;
    font-weight: bold;
    color: var(--gp-text-color, #1e73be);
    cursor: pointer;
}

.cost-delay-tabs .tab.active {
    background-color: var(--gp-accent-color, #1e73be);
    color: var(--gp-button-color, #fff);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.cost-delay-table {
    width: 100%;
}

.cd-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}

.cd-header {
    font-weight: bold;
}

.cd-row label {
    font-weight: 600;
    padding-top: 10px;
}

.cd-row input[type="number"] {
    width: 100px;
}

.cd-row input[type="range"] {
    width: 100%;
}

.cd-row input[type="range"] {
    width: 100%;
    accent-color: var(--gp-accent-color, #4da784);
    /* for browsers that support it */
}


/* Track styling (WebKit browsers: Chrome, Safari, Edge) */

.cd-row input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #ccc;
    /* set track background */
    border-radius: 3px;
}


/* Track styling (Firefox) */

.cd-row input[type="range"]::-moz-range-track {
    height: 6px;
    background: #ccc;
    border-radius: 3px;
}


/* Thumb styling (WebKit) */

.cd-row input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gp-accent-color, #1e73be);
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    margin-top: -6px;
    /* align thumb vertically with the track */
}

.cd-full-span {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-summary {
    margin-top: 20px;
}

.cd-summary table {
    width: 100%;
    border-collapse: collapse;
}

.cd-summary td {
    padding: 10px;
    border-top: 1px solid #ccc;
}

.cd-input-amount {
    width: 60% !important;
}

.highlight {
    background: #b2dfdb;
    color: #004d40;
    padding: 10px 18px;
    border-radius: 22px;
    display: inline-block;
    font-weight: bold;
}

.cd-button {
    padding: 14px 32px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    border: none;
    background-color: var(--gp-button-background, #1e73be);
    color: var(--gp-button-color, #fff);
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .cd-row {
        grid-template-columns: 1fr;
    }
    .cd-row label,
    .cd-row div {
        text-align: left;
    }
}