/*
 * WCMP shared floating checkout summary.
 * Reuses the same visual language and layout as the textile matrix footer so
 * current and future standalone services can share one component.
 */
.wcmp-service-checkout-card{
    --wcmp-service-accent:#3366ff;
    --wcmp-service-accent-strong:#2457f5;
    --wcmp-service-ink:#111827;
    --wcmp-service-text:#334155;
    --wcmp-service-muted:#718096;
    --wcmp-service-line:#e5e9f0;
    box-sizing:border-box;
    position:sticky;
    bottom:12px;
    z-index:30;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:18px;
    width:100%;
    margin-top:20px;
    padding:13px 14px;
    border:1px solid rgba(218,224,234,.95);
    border-radius:17px;
    background:rgba(255,255,255,.96);
    box-shadow:0 14px 40px rgba(15,23,42,.12);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}
.wcmp-service-checkout-card *{box-sizing:border-box}
.wcmp-service-checkout-top{display:flex;align-items:center;gap:14px;min-width:0}
.wcmp-service-total-block{flex:0 0 auto;min-width:118px}
.wcmp-service-total-label{display:block;color:var(--wcmp-service-muted);font-size:11px;font-weight:650;line-height:1.3;text-transform:uppercase;letter-spacing:.035em}
.wcmp-service-total-line{display:flex;align-items:baseline;gap:8px;min-width:0}
.wcmp-service-total-value{color:var(--wcmp-service-ink)!important;font-size:23px!important;font-weight:850!important;letter-spacing:-.035em!important;line-height:1.1!important;white-space:nowrap}
.wcmp-service-total-units{color:var(--wcmp-service-muted);font-size:11px;line-height:1.35;white-space:nowrap}
.wcmp-service-unit-line{display:flex;align-items:baseline;gap:4px;margin-top:4px;color:var(--wcmp-service-muted);font-size:9px;line-height:1.25;white-space:nowrap}
.wcmp-service-unit-line>span{font-weight:650;letter-spacing:.025em;text-transform:uppercase}
.wcmp-service-unit-line>strong{color:var(--wcmp-service-ink)!important;font-size:9.5px!important;font-weight:750!important;line-height:1.25!important}
.wcmp-service-summary-rows{
    display:grid;
    grid-template-columns:minmax(145px,1fr);
    align-content:center;
    gap:3px;
    min-width:160px;
    padding-left:14px;
    border-left:1px solid var(--wcmp-service-line);
}
.wcmp-service-summary-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;color:var(--wcmp-service-muted);font-size:11px;line-height:1.35;white-space:nowrap}
.wcmp-service-summary-row[hidden]{display:none!important}
.wcmp-service-summary-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wcmp-service-summary-row>strong,.wcmp-service-summary-row>b{flex:0 0 auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;color:var(--wcmp-service-text)!important;font-size:11px!important;font-weight:700!important;line-height:1.35!important;text-align:right;white-space:nowrap}
.wcmp-service-add-button{
    appearance:none!important;
    -webkit-appearance:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    min-width:160px!important;
    min-height:40px!important;
    width:auto!important;
    margin:0!important;
    padding:8px 14px!important;
    border:0!important;
    border-radius:10px!important;
    background:#3366ff!important;
    color:#fff!important;
    font-size:11.5px!important;
    font-weight:800!important;
    line-height:1.2!important;
    letter-spacing:.02em!important;
    text-transform:uppercase!important;
    box-shadow:0 7px 16px rgba(51,102,255,.18)!important;
    transition:background .15s ease,transform .15s ease,box-shadow .15s ease!important;
}
.wcmp-service-add-button:hover:not(:disabled){background:var(--wcmp-service-accent-strong)!important;color:#fff!important;transform:translateY(-1px)!important;box-shadow:0 10px 22px rgba(51,102,255,.25)!important}
.wcmp-service-add-button:disabled{opacity:.45!important;cursor:not-allowed!important;box-shadow:none!important}
.wcmp-service-add-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;color:#fff;font-size:20px;font-weight:400;line-height:1;transform:translateY(-.5px)}

@media(max-width:767px){
    /* Match the textile floating summary on mobile: information first, CTA below and right aligned. */
    .wcmp-service-checkout-card{
        grid-template-columns:1fr;
        grid-template-areas:
            "summary"
            "action";
        align-items:stretch;
        gap:8px;
        padding:9px 10px;
        bottom:8px;
    }
    .wcmp-service-checkout-top{
        grid-area:summary;
        display:grid;
        grid-template-columns:minmax(105px,.9fr) minmax(135px,1.1fr);
        align-items:center;
        gap:10px;
        width:100%;
    }
    .wcmp-service-total-block{min-width:0;text-align:left}
    .wcmp-service-total-line{justify-content:flex-start}
    .wcmp-service-summary-rows{min-width:0;width:100%;padding-left:10px}
    .wcmp-service-summary-row{white-space:normal}
    .wcmp-service-summary-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .wcmp-service-summary-row>strong,.wcmp-service-summary-row>b{max-width:150px;white-space:nowrap}
    .wcmp-service-summary-row,.wcmp-service-summary-row>strong,.wcmp-service-summary-row>b{font-size:10.5px!important}
    .wcmp-service-total-label{font-size:10px}
    .wcmp-service-total-value{font-size:21px!important}
    .wcmp-service-total-units{font-size:9.75px}
    .wcmp-service-add-button{
        grid-area:action;
        justify-self:end;
        width:auto!important;
        min-width:0!important;
        min-height:35px!important;
        padding:7px 14px!important;
        font-size:10.5px!important;
    }
    .wcmp-service-add-button .wcmp-service-add-label{display:inline!important}
    .wcmp-service-add-icon{display:none!important}
}
@media(max-width:430px){
    .wcmp-service-checkout-card{gap:7px;padding:9px}
    .wcmp-service-checkout-top{grid-template-columns:minmax(96px,.85fr) minmax(120px,1.15fr);gap:8px}
    .wcmp-service-summary-rows{gap:2px;padding-left:8px}
    .wcmp-service-summary-row,.wcmp-service-summary-row>strong,.wcmp-service-summary-row>b{font-size:9.8px!important}
    .wcmp-service-summary-row>strong,.wcmp-service-summary-row>b{max-width:112px}
    .wcmp-service-total-value{font-size:19px!important}
    .wcmp-service-unit-line{font-size:8px}
    .wcmp-service-unit-line>strong{font-size:8.5px!important}
}

/* Keep the shared CTA geometry even when a service stylesheet defines its own button width/margin. */
.wcmp-service-checkout-card .wcmp-service-add-button{width:auto!important;margin:0!important;min-width:160px!important}
@media(max-width:767px){.wcmp-service-checkout-card .wcmp-service-add-button{min-width:0!important}}
