/* Plan picker — block cart/checkout order summary (cart-plans.js) and classic cart lines.
   Block selectors are doubled up because WooCommerce's
   `.wc-block-components-totals-wrapper.slot-wrapper > * > *` zeroes side padding. */
.wc-block-components-totals-wrapper .wc-block-components-order-meta .ctrspace-plan-box,
.ctrspace-plan-box.ctrspace-plan-box.ctrspace-plan-box {
    margin: 4px 0 0;
    padding: 18px;
    border: 1px solid rgba(123, 0, 255, .16);
    border-radius: 16px;
    background: linear-gradient(135deg, #FAF9FF, #F4F8FF);
}
.ctrspace-plan-box-title {
    margin: 0 0 12px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #7B00FF;
}

.ctrspace-plan-group { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.ctrspace-plan-group + .ctrspace-plan-group { margin-top: 16px; }
.ctrspace-plan-group.is-busy { pointer-events: none; }
.ctrspace-plan-group.is-busy .ctrspace-plan-card:not(.is-selected) { opacity: .55; }
.ctrspace-plan-group.is-busy .ctrspace-plan-card.is-selected .ctrspace-plan-price { opacity: .5; }
.ctrspace-plan-item-name { margin: 0 0 4px; padding: 0; font-size: 13px; font-weight: 700; color: #0A0B1E; }

.ctrspace-plan-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 1.5px solid #E6E3F5;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ctrspace-plan-card:hover { border-color: rgba(123, 0, 255, .35); }
.ctrspace-plan-card.is-selected {
    border-color: #7B00FF;
    background: #fff;
    box-shadow: 0 8px 22px rgba(123, 0, 255, .14);
}
/* The real radio stays in the DOM for keyboard and screen readers. */
.ctrspace-plan-card input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ctrspace-plan-card input[type="radio"]:focus-visible ~ .ctrspace-plan-radio { box-shadow: 0 0 0 3px rgba(123, 0, 255, .25); }

.ctrspace-plan-radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #CFCBE6;
    border-radius: 50%;
    background: #fff;
    transition: border-color .2s ease;
}
.ctrspace-plan-card.is-selected .ctrspace-plan-radio {
    border: 5px solid #7B00FF;
}

.ctrspace-plan-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ctrspace-plan-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.3;
    color: #0A0B1E;
}
.ctrspace-plan-badge {
    padding: 2px 8px;
    border-radius: 100px;
    background: linear-gradient(90deg, #00A8FF, #7B00FF);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.ctrspace-plan-sites { font-size: 12.5px; color: #6B6B85; line-height: 1.4; }

.ctrspace-plan-price {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0A0B1E;
    white-space: nowrap;
}
.ctrspace-plan-price small { margin-left: 2px; font-size: 11.5px; font-weight: 600; color: #83849B; }
.ctrspace-plan-card.is-selected .ctrspace-plan-price { color: #7B00FF; }

/* Doubled class: the theme gives cart paragraphs a 20px bottom margin. */
.ctrspace-plan-box.ctrspace-plan-box .ctrspace-plan-note { margin: 12px 0 0; padding: 0; font-size: 12px; line-height: 1.5; color: #6B6B85; }

/* Classic cart: a dropdown under each line. */
.woocommerce-cart-form .ctrspace-plan-field { margin-top: 8px; max-width: 360px; }
.woocommerce-cart-form .ctrspace-plan-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.woocommerce-cart-form .ctrspace-plan-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #E2E0F0;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 14px;
}
