/* ============================================================
   Domeneshop Pricelist – frontend styles
   ============================================================ */

.dpl-wrapper {
    width: 100%;
}

.dpl-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.dpl-control-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dpl-control-group-vat {
    margin-left: auto;
}

.dpl-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: #2c3338;
    cursor: pointer;
}

.dpl-checkbox {
    margin: 0;
}

.dpl-controls label {
    font-weight: 600;
    color: #2c3338;
}

.dpl-select {
    min-width: 220px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 0.42rem 0.5rem;
    background: #fff;
}

/* ---- Scrollable wrapper for wide tables on small screens ---- */
.dpl-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---- Table ---- */
.dpl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.dpl-table thead tr {
    background: #3498DB;
}

.dpl-table th {
    padding: 0.6rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid #2980b9;
    border-right: 1px solid #2e86c1;
    white-space: nowrap;
}

.dpl-table th:last-child {
    border-right: none;
}

.dpl-table td {
    padding: 0.5rem 1rem;
    text-align: left;
    border-bottom: 1px solid #edf0f3;
    border-right: 1px solid #edf0f3;
    color: #2c3338;
    white-space: nowrap;
}

.dpl-table td:last-child {
    border-right: none;
}

/* Domene column */
.dpl-table th.dpl-col-tld,
.dpl-table td.dpl-col-tld {
    min-width: 80px;
}

/* Zebra striping */
.dpl-table tbody tr:nth-child(even) td {
    background: #f9fafb;
}

.dpl-table tbody tr:hover td {
    background: #eef4fb;
}

/* ---- Promoted / campaign price ---- */
.dpl-table td.dpl-promoted {
    font-weight: 700;
}

/* ---- Error message ---- */
.dpl-error {
    color: #c0392b;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

.dpl-warning {
    color: #8a6d3b;
    background: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.dpl-loading {
    color: #2c3338;
    background: #f2f6fb;
    border: 1px solid #d9e6f5;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .dpl-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .dpl-control-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .dpl-control-group-vat {
        margin-left: 0;
    }

    .dpl-select {
        width: 100%;
        min-width: 0;
    }

    .dpl-table th,
    .dpl-table td {
        padding: 0.4rem 0.65rem;
        font-size: 0.85rem;
    }
}
