/* Scoped additions only: existing layout, authentication and payment styles stay intact. */
.cfv-delivery-editor{margin:20px 0;padding:18px;border:1px solid #3185bf;border-radius:12px;background:#0a2033}
.cfv-delivery-editor legend{padding:0 8px;color:#edf5ff;font-size:1.1rem;font-weight:750}
.cfv-delivery-editor .cfv-delivery-pl{display:block;margin-top:3px;color:#a8bfd5;font-size:.79rem;font-weight:450}
.cfv-delivery-editor>p{color:#b7cfe3;font-size:.8rem;margin:5px 0 14px}
.cfv-delivery-edit-row{display:grid;grid-template-columns:minmax(95px,1fr) minmax(100px,1.1fr) auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #234d6b}
.cfv-delivery-edit-row>strong{color:#edf5ff}
.cfv-admin-theme .cfv-delivery-edit-row label{margin:0;font-size:.78rem}
.cfv-delivery-edit-row input[type=number]{width:100%;margin-top:5px}
.cfv-delivery-edit-row input:disabled{opacity:.5;cursor:not-allowed}
.cfv-delivery-edit-row label.check{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.cfv-delivery-edit-row .check input{margin:0}
.cfv-delivery-editor .cfv-delivery-default{font-size:.75rem;min-height:36px!important;padding:7px 11px;margin-top:8px}
.cfv-delivery-editor .cfv-delivery-legacy{color:#d5e9fb;border-left:2px solid #45adff;padding-left:10px;margin-top:14px}
.cfv-delivery-choices{border:0;padding:0;margin:22px 0 18px;min-width:0}
.cfv-delivery-choices legend{font-size:1.15rem;font-weight:800;color:#edf5ff;margin-bottom:10px}
.cfv-delivery-choices legend small{display:block;font-size:.8rem;color:#a8bfd5;font-weight:450;margin-top:4px}
.cfv-theme .cfv-delivery-option{display:flex;gap:12px;align-items:center;margin:9px 0;padding:14px 13px;background:#0b1f32;border:1px solid #326888;border-radius:10px;cursor:pointer;color:#eef5ff}
.cfv-delivery-option:has(input:checked){border-color:#219aff;box-shadow:inset 0 0 0 1px #219aff;background:#0a2a46}
.cfv-delivery-option:focus-within{outline:2px solid #a1d7ff;outline-offset:2px}
.cfv-theme .cfv-delivery-option input[type=radio]{width:20px;height:20px;min-height:20px;margin:0;flex:0 0 auto;accent-color:#168aff}
.cfv-delivery-option>span{flex:1;min-width:0;font-weight:650}
.cfv-delivery-option>strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.cfv-delivery-message{font-size:.8rem;color:#b7cfe3;margin:10px 0 0;line-height:1.5}
.cfv-delivery-message[data-error=true]{color:#ffc0ca}
@media(max-width:520px){.cfv-delivery-editor{padding:13px}.cfv-delivery-edit-row{grid-template-columns:1fr 1.2fr;gap:10px}.cfv-delivery-edit-row .check{grid-column:1/-1}.cfv-delivery-choices legend{font-size:1.06rem}}

/* Delivery service presets in the product editor. */
.cfv-delivery-edit-row.cfv-delivery-presets{display:block;min-width:0}
.cfv-delivery-carrier-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;color:#edf5ff}
.cfv-delivery-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cfv-delivery-service-grid.cfv-delivery-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.cfv-delivery-service-grid.cfv-delivery-single{grid-template-columns:minmax(0,1fr)}
.cfv-delivery-service{display:flex;flex-direction:column;min-width:0;padding:14px;border:1px solid #315671;border-radius:10px;background:#102b41}
.cfv-delivery-service.is-selected{border-color:#4da9ed;background:#15374f}
.cfv-admin-theme .cfv-delivery-service>label:first-child{display:flex;flex-direction:column;gap:6px;flex:1;height:auto;color:#edf5ff}
.cfv-delivery-service select{width:100%;min-width:0;margin-top:auto;font-size:.84rem;min-height:42px}
.cfv-delivery-service select:disabled{opacity:.5;cursor:not-allowed}
.cfv-delivery-service>label:first-child{min-height:108px}
.cfv-delivery-service .cfv-delivery-use{display:flex;align-items:flex-start;gap:8px;margin-top:12px!important;line-height:1.4}
.cfv-delivery-use input[type=radio]{width:17px;height:17px;min-height:17px;margin:1px 0 0;flex:0 0 auto;accent-color:#45adff}
.cfv-delivery-service .cfv-delivery-pl{margin-top:4px}
.cfv-delivery-selected-label{font-size:.76rem;color:#c5e8ff;line-height:1.5;overflow-wrap:anywhere}
.cfv-delivery-applied{margin:10px 0 0!important;font-size:.8rem!important;color:#c5e8ff!important;line-height:1.5}
.cfv-delivery-applied[data-has-saved-price=true]{color:#ffe0a4!important}
.cfv-delivery-editor .cfv-delivery-service-help{padding:10px 12px;border:1px solid #315671;border-radius:8px;background:#102b41;color:#c8dfef;line-height:1.55}
@media(max-width:1100px){.cfv-delivery-service-grid.cfv-delivery-three{grid-template-columns:minmax(0,1fr)}}
@media(max-width:620px){.cfv-delivery-service-grid{grid-template-columns:minmax(0,1fr)}.cfv-delivery-carrier-head{align-items:flex-start}.cfv-delivery-carrier-head .check{justify-content:flex-end}.cfv-delivery-service>label:first-child{min-height:0}.cfv-delivery-service select{margin-top:8px}}

/* Multiple independent services and parcel rates. */
.cfv-delivery-service h4,.cfv-delivery-track-group>h4{margin:0 0 12px;font-size:.85rem;line-height:1.5;color:#edf5ff}
.cfv-delivery-service .cfv-delivery-use{margin:0 0 14px!important;min-height:0;flex:0 0 auto}
.cfv-delivery-use input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:2px 0 0;flex:0 0 auto;accent-color:#45adff}
.cfv-delivery-service .cfv-delivery-size-label{font-size:.79rem;line-height:1.5;margin:0 0 6px;color:#c5e8ff}
.cfv-delivery-service select{margin-top:0}
.cfv-delivery-rates{display:grid;gap:10px;margin-top:14px;min-width:0}
.cfv-delivery-rates>label{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.cfv-delivery-rates input[type=number]{width:105px;min-width:0;max-width:48%;margin:0;flex:0 0 auto;font-size:.85rem}
.cfv-delivery-track-group{min-width:0;border:1px solid #315671;border-radius:10px;padding:14px;background:#102b41}
.cfv-delivery-track-group .cfv-delivery-service{margin-top:12px;padding:12px;background:#0a2033}
.cfv-delivery-option>span small{display:block;font-size:.78rem;color:#a8cde4;margin-top:5px;font-weight:450}
.cfv-delivery-option>span{overflow-wrap:anywhere}
[data-shop=other] .cfv-delivery-option>span small{color:#43584d}

.cfv-delivery-quantity-rates{width:100%;border-collapse:collapse;margin-top:10px;font-size:.9rem}.cfv-delivery-quantity-rates th,.cfv-delivery-quantity-rates td{text-align:left;padding:8px 4px;border-bottom:1px solid rgba(145,200,235,.2)}.cfv-delivery-quantity-rates th:last-child,.cfv-delivery-quantity-rates td:last-child{text-align:right;white-space:nowrap}.cfv-delivery-quantity-rates small{display:block}
