.ccb {
--ccb-accent: #1d1d1f;
--ccb-on-accent: #fff;
--ccb-card-bg: #fff;
--ccb-soft: rgba(0, 0, 0, .05);
--ccb-border: rgba(0, 0, 0, .2);
--ccb-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 16px rgba(16, 24, 40, .06);
--ccb-r-input: 6px;
--ccb-r-btn: 8px;
--ccb-input-bg: transparent;
--ccb-gap: 12px;
font: inherit;
color: inherit;
box-sizing: border-box;
max-width: 100%;
}
@supports (color: color-mix(in srgb, red 10%, blue)) {
.ccb {
--ccb-soft: color-mix(in srgb, currentColor 7%, transparent);
--ccb-border: color-mix(in srgb, currentColor 22%, transparent);
}
} .ccb--s-primary { --ccb-accent: var(--wp--preset--color--primary, var(--e-global-color-primary, var(--theme-palette-color-1, var(--ast-global-color-0, var(--global-palette1, #1d1d1f))))); }
.ccb--s-alternative { --ccb-accent: var(--wp--preset--color--secondary, var(--wp--preset--color--accent, var(--e-global-color-secondary, var(--theme-palette-color-2, var(--ast-global-color-1, var(--global-palette2, #555)))))); }
.ccb--s-black { --ccb-accent: #000; }
.ccb *, .ccb *::before, .ccb *::after { box-sizing: border-box; }
.ccb [hidden] { display: none !important; }
.ccb-hide { display: none !important; }
.ccb-title { margin: 0 0 16px; font-family: inherit; } .ccb-progress { margin-bottom: 14px; }
.ccb-progress-t { display: block; margin-bottom: 6px; font-size: .8em; opacity: .8; }
.ccb-progress-bar { display: block; height: 6px; border-radius: 99px; background: var(--ccb-soft); overflow: hidden; }
.ccb-progress-f { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ccb-accent); transition: width .25s ease; }
.ccb-presets { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 14px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ccb-presets-l { flex: 0 0 auto; white-space: nowrap; }
.ccb-presets-l { font-size: .8em; opacity: .75; }
.ccb button.ccb-chip {
flex: 0 0 auto; white-space: nowrap; margin: 0; padding: 8px 14px; min-height: 38px;
font: inherit; font-size: .85em; line-height: 1.1; color: inherit; text-transform: none; letter-spacing: normal;
background: transparent; border: 1px solid var(--ccb-border); border-radius: 999px; box-shadow: none; cursor: pointer;
transition: background .15s, color .15s, border-color .15s;
}
.ccb button.ccb-chip:hover { border-color: var(--ccb-accent); }
.ccb button.ccb-chip[aria-pressed="true"] { background: var(--ccb-accent); border-color: var(--ccb-accent); color: var(--ccb-on-accent); }
.ccb button.ccb-chip:focus-visible { outline: 2px solid var(--ccb-accent); outline-offset: 2px; } .ccb-body { display: flex; flex-direction: column; gap: 20px; }
.ccb-sec--plain + .ccb-sec, .ccb-sec { min-width: 0; }
.ccb button.ccb-h {
display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 0;
font: inherit; font-size: .85em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left;
color: inherit; background: none; border: 0; border-radius: 0; box-shadow: none; cursor: default;
}
.ccb button.ccb-h:disabled { color: inherit; opacity: 1; }
.ccb-h-t { flex: 1 1 auto; position: relative; min-width: 0; }
.ccb-h-meta { display: inline-flex; align-items: center; gap: 8px; }
.ccb-h-sum { font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .8; white-space: nowrap; }
.ccb-h-badge {
min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; letter-spacing: 0;
display: inline-flex; align-items: center; justify-content: center;
font-size: 11px; font-weight: 700; background: var(--ccb-accent); color: var(--ccb-on-accent);
}
.ccb-h-chev { display: none; }
.ccb--look-modern .ccb-h-t { padding-left: 12px; }
.ccb--look-modern .ccb-h-t::before { content: ""; position: absolute; left: 0; top: .05em; bottom: .05em; width: 3px; border-radius: 2px; background: var(--ccb-accent); }
.ccb-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: var(--ccb-gap);
align-items: stretch;
}
.ccb-col-2 { grid-column: span 2; }
.ccb-col-3 { grid-column: span 3; }
.ccb-col-4 { grid-column: span 4; }
.ccb-col-6 { grid-column: span 6; } .ccb-card, .ccb-field {
--p: 0%;
border: 1px solid var(--ccb-border);
border-radius: min(var(--ccb-r-input), 16px);
padding: 12px;
min-width: 0;
}
.ccb-card { display: flex; flex-direction: column; }
.ccb--look-modern .ccb-card, .ccb--look-modern .ccb-field {
border: 0; background: var(--ccb-card-bg); box-shadow: var(--ccb-shadow);
}
.ccb-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ccb-card--input .ccb-card-head { margin-bottom: 0; }
.ccb-lbl-wrap { display: flex; align-items: flex-start; gap: 6px; flex: 1 1 auto; min-width: 0; }
.ccb-card-head .ccb-label { flex: 1 1 auto; min-width: 0; font-size: .85em; line-height: 1.3; opacity: .9; cursor: pointer; }
.ccb-hint { white-space: normal; opacity: .75; }
.ccb-field > .ccb-lbl-wrap { margin-bottom: 10px; }
.ccb-field .ccb-label { font-size: .85em; line-height: 1.3; opacity: .9; } .ccb button.ccb-help {
position: relative; flex: 0 0 auto; width: 20px; height: 20px; margin: 0; padding: 0;
display: inline-flex; color: inherit; background: none; border: 0; border-radius: 50%;
box-shadow: none; cursor: pointer; opacity: .55; transition: opacity .15s, color .15s;
}
.ccb button.ccb-help::after { content: ""; position: absolute; inset: -12px; }
.ccb button.ccb-help:hover, .ccb button.ccb-help[aria-expanded="true"] { opacity: 1; color: var(--ccb-accent); }
.ccb button.ccb-help:focus-visible { outline: 2px solid var(--ccb-accent); outline-offset: 2px; opacity: 1; }
.ccb button.ccb-help svg { width: 100%; height: 100%; display: block; fill: none; }
.ccb-help-text {
margin: -4px 0 12px; padding: 9px 11px; font-size: .8em; line-height: 1.45;
background: var(--ccb-soft); border-radius: min(var(--ccb-r-input), 10px);
}
.ccb-field > .ccb-help-text { margin-top: -2px; }
.ccb-help-text a, .ccb-opt-help a { color: var(--ccb-accent); text-decoration: underline; }
.ccb-help-text ul, .ccb-help-text ol, .ccb-opt-help ul, .ccb-opt-help ol { margin: 4px 0 0 1.2em; padding: 0; }
.ccb-opt-help { margin-top: 10px; font-size: .8em; line-height: 1.45; opacity: .85; }
.ccb-opt-help p { margin: 0 0 4px; }
.ccb-opt-help p:last-child { margin-bottom: 0; } .ccb-inp {
display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: 0 0 auto;
min-width: 5.4em; min-height: 40px; padding: 0 10px; cursor: text;
background: var(--ccb-input-bg); border: 1px solid var(--ccb-border); border-radius: var(--ccb-r-input);
}
.ccb-inp:focus-within { outline: 2px solid var(--ccb-accent); outline-offset: 1px; }
.ccb-inp em { font-style: normal; font-size: .85em; font-weight: 500; opacity: .6; white-space: nowrap; }
.ccb input.ccb-num {
width: 2ch; min-width: 1ch; max-width: 100%; min-height: 38px; margin: 0; padding: 0; text-align: right;
font: inherit; font-weight: 700; color: inherit; line-height: 1.2;
background: transparent; border: 0; border-radius: 0; box-shadow: none; outline: 0;
}
.ccb-card--input .ccb-inp { align-self: flex-start; }
.ccb-slide .ccb-inp { min-width: 5.8em; } .ccb-slide { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.ccb-slide .ccb-inp { flex: 0 0 auto; }
.ccb input.ccb-range {
-webkit-appearance: none; appearance: none;
display: block; flex: 1 1 auto; width: 100%; min-width: 0; height: 28px; margin: 0; padding: 0;
background: transparent; cursor: pointer; box-shadow: none; border: 0;
}
.ccb input.ccb-range::-webkit-slider-runnable-track {
height: 6px; border-radius: 3px;
background: linear-gradient(to right, var(--ccb-accent) var(--p), var(--ccb-soft) var(--p));
}
.ccb input.ccb-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--ccb-soft); }
.ccb input.ccb-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ccb-accent); }
.ccb input.ccb-range::-webkit-slider-thumb {
-webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px;
border-radius: 50%; background: #fff; border: 2px solid var(--ccb-accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.ccb input.ccb-range::-moz-range-thumb {
width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ccb-accent);
}
.ccb input.ccb-range:focus-visible { outline: 2px solid var(--ccb-accent); outline-offset: 3px; border-radius: 4px; } .ccb-step { display: flex; align-items: stretch; gap: 8px; margin-top: auto; }
.ccb button.ccb-stepbtn {
flex: 0 0 auto; width: 46px; min-height: 46px; margin: 0; padding: 0;
display: inline-flex; align-items: center; justify-content: center;
font: inherit; font-size: 1.4em; font-weight: 600; line-height: 1; color: inherit;
background: var(--ccb-soft); border: 1px solid transparent; border-radius: var(--ccb-r-btn);
cursor: pointer; box-shadow: none; text-transform: none;
}
.ccb button.ccb-stepbtn:hover:not(:disabled) { background: var(--ccb-accent); color: var(--ccb-on-accent); }
.ccb button.ccb-stepbtn:disabled { opacity: .35; cursor: not-allowed; }
.ccb button.ccb-stepbtn:focus-visible { outline: 2px solid var(--ccb-accent); outline-offset: 2px; }
.ccb-inp--step { flex: 1 1 auto; min-width: 0; } .ccb-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ccb button.ccb-opt {
display: inline-flex; align-items: center; gap: 8px;
min-height: 42px; padding: 8px 14px; margin: 0;
font: inherit; font-size: .85em; line-height: 1.2; color: inherit; text-align: left;
background: var(--ccb-soft); border: 1px solid transparent; border-radius: var(--ccb-r-btn);
cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal;
transition: background .15s, color .15s, border-color .15s;
}
.ccb button.ccb-opt:hover { border-color: var(--ccb-border); }
.ccb button.ccb-opt[aria-pressed="true"] { background: var(--ccb-accent); color: var(--ccb-on-accent); }
.ccb button.ccb-opt:focus-visible { outline: 2px solid var(--ccb-accent); outline-offset: 2px; }
.ccb .ccb-opts--cards button.ccb-opt {
flex-direction: column; justify-content: center; text-align: center;
flex: 1 1 130px; max-width: 220px; min-height: 96px; padding: 14px 10px;
border-color: var(--ccb-border); background: transparent;
}
.ccb .ccb-opts--cards button.ccb-opt[aria-pressed="true"] { border-color: var(--ccb-accent); background: var(--ccb-accent); color: var(--ccb-on-accent); }
.ccb .ccb-opts--cards { --ccb-icon: 34px; }
.ccb-ico { display: inline-flex; flex: 0 0 auto; width: var(--ccb-icon, 22px); height: var(--ccb-icon, 22px); line-height: 0; }
.ccb-ico svg, .ccb-ico img { width: 100%; height: 100%; display: block; object-fit: contain; max-width: none; border: 0; border-radius: 0; box-shadow: none; } .ccb-info {
padding: 12px; text-align: center; font-size: .85em;
background: var(--ccb-soft); border-radius: min(var(--ccb-r-input), 16px);
}
.ccb-info b { font-weight: 700; font-size: 1.05em; }
.ccb-total {
position: relative; overflow: hidden;
display: flex; justify-content: space-between; align-items: center; gap: 12px;
margin-top: 20px; padding: 16px 18px;
background: var(--ccb-soft); border-radius: min(var(--ccb-r-input), 16px); font-weight: 600;
}
.ccb-total-v { font-size: 1.5em; line-height: 1.1; white-space: nowrap; }
.ccb-ruler { display: none; }
.ccb--look-modern .ccb-total { padding: 18px 18px 28px; background: var(--ccb-accent); color: var(--ccb-on-accent); }
.ccb--look-modern .ccb-ruler {
display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; opacity: .65;
background-image:
repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px),
repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 40px);
background-size: 100% 6px, 100% 12px;
background-position: 0 100%, 0 100%;
background-repeat: no-repeat;
}
.ccb-summary { margin-top: 16px; }
.ccb-summary-t { margin-bottom: 8px; font-size: .8em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.ccb-summary-l { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ccb-summary-l li {
display: inline-flex; flex: 0 0 auto; white-space: nowrap; gap: 6px; margin: 0; padding: 6px 11px; font-size: .8em; line-height: 1.3;
background: var(--ccb-soft); border-radius: 999px;
}
.ccb-summary-l li span { opacity: .7; }
.ccb a.ccb-wa {
display: flex; align-items: center; justify-content: center; gap: 8px;
min-height: 48px; margin-top: 12px; padding: 10px 16px;
font-weight: 600; text-decoration: none; color: inherit;
border: 1px solid var(--ccb-border); border-radius: var(--ccb-r-btn); background: transparent;
transition: border-color .15s, background .15s;
}
.ccb a.ccb-wa:hover { border-color: var(--ccb-accent); background: var(--ccb-soft); }
.ccb a.ccb-wa:focus-visible { outline: 2px solid var(--ccb-accent); outline-offset: 2px; }
.ccb a.ccb-wa .ccb-ico { color: #128c4a; }
.ccb-note { margin: 10px 0 0; text-align: center; font-size: .75em; opacity: .7; } .ccb-sticky { display: none; }
.ccb-sticky-in {
display: flex; align-items: center; gap: 12px;
padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
background: var(--ccb-accent); color: var(--ccb-on-accent);
box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
}
.ccb-sticky-l { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ccb-sticky-lab { font-size: .7em; opacity: .8; }
.ccb-sticky-v { font-size: 1.25em; white-space: nowrap; }
.ccb button.ccb-sticky-btn {
margin: 0 0 0 auto; padding: 0 18px; min-height: 44px;
font: inherit; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1;
color: var(--ccb-accent); background: var(--ccb-on-accent); border: 0; border-radius: var(--ccb-r-btn);
box-shadow: none; cursor: pointer;
} .ccb--acc .ccb-body { gap: 10px; }
.ccb--acc button.ccb-h {
margin: 0; padding: 14px 16px; cursor: pointer;
background: var(--ccb-card-bg); border: 1px solid var(--ccb-border); border-radius: min(var(--ccb-r-input), 16px);
}
.ccb--look-modern.ccb--acc button.ccb-h { border-color: transparent; box-shadow: var(--ccb-shadow); }
.ccb--acc button.ccb-h:focus-visible { outline: 2px solid var(--ccb-accent); outline-offset: 2px; }
.ccb--acc .ccb-h-t::before { display: none; }
.ccb--look-modern.ccb--acc .ccb-h-t { padding-left: 0; }
.ccb--acc .ccb-h-chev {
display: inline-block; width: 8px; height: 8px; margin: -3px 4px 0 2px;
border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
transform: rotate(45deg); transition: transform .2s;
}
.ccb--acc .ccb-sec.is-open .ccb-h-chev { transform: rotate(-135deg); margin-top: 3px; }
.ccb--acc .ccb-sec:not(.is-open):not(.ccb-sec--plain) .ccb-sec-body { display: none; }
.ccb--acc .ccb-sec.is-open .ccb-sec-body { padding-top: 12px; }
.ccb--acc .ccb-sec--plain .ccb-sec-body { padding-top: 0; } @media (max-width: 720px) {
.ccb-summary-l { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.ccb-col-2 { grid-column: span 3; }
.ccb-col-4 { grid-column: span 6; }
.ccb-sticky {
display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
transform: translateY(110%); transition: transform .25s ease; pointer-events: none;
}
.ccb-sticky.is-on { transform: none; pointer-events: auto; }
}
@media (max-width: 480px) {
.ccb-col-2, .ccb-col-3 { grid-column: span 6; }
.ccb-total { padding: 14px; }
.ccb-total-v { font-size: 1.3em; }
.ccb button.ccb-opt { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
.ccb button.ccb-opt, .ccb button.ccb-chip, .ccb-progress-f, .ccb-sticky, .ccb-h-chev { transition: none; }
}