/* Dumbphone Bundle - Abonnement selector
   Designet til Inspirio-temaet
   ------------------------------------ */

.dbp-selector-wrap {
    margin: 28px 0 24px;
    font-family: inherit;
}

.dbp-selector-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.dbp-selector-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
}

/* Grid med abonnements-kort */
.dbp-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

/* Skjul radio-knap */
.dbp-plan input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Kort */
.dbp-plan {
    position: relative;
    cursor: pointer;
    display: block;
}

.dbp-plan__inner {
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    background: #fff;
    height: 100%;
    box-sizing: border-box;
}

.dbp-plan:hover .dbp-plan__inner {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transform: translateY(-1px);
}

/* Valgt plan */
.dbp-plan input[type="radio"]:checked + .dbp-plan__inner {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 1px #1a1a1a, 0 4px 12px rgba(0,0,0,0.10);
}

/* Badge */
.dbp-plan__badge {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* Header */
.dbp-plan__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.dbp-plan__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.dbp-plan__network {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #444;
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
}

/* Pris */
.dbp-plan__price {
    margin-bottom: 12px;
}

.dbp-plan__price-amount {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.dbp-plan__price-unit {
    font-size: 13px;
    color: #888;
}

/* Features liste */
.dbp-plan__features {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.dbp-plan__features li {
    font-size: 13px;
    color: #555;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dbp-icon {
    font-size: 12px;
    flex-shrink: 0;
}

/* Beskrivelse */
.dbp-plan__desc {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0;
    font-style: italic;
    line-height: 1.4;
}

/* Ingen abonnement kort */
.dbp-plan--no-sub .dbp-plan__inner {
    border-style: dashed;
    background: #fafafa;
}

.dbp-plan--no-sub input[type="radio"]:checked + .dbp-plan__inner {
    border-style: solid;
}

/* Mobilvenlig */
@media (max-width: 480px) {
    .dbp-plans {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 360px) {
    .dbp-plans {
        grid-template-columns: 1fr;
    }
}

/* Inspirio tema-tilpasning */
.woocommerce div.product .dbp-selector-wrap {
    clear: both;
}
