.cozy-ec-wrap {
--cozy-ec-brand: #b54c34;
--cozy-ec-ink: #3c261e;
--cozy-ec-ink-soft: #7c5b4d;
--cozy-ec-bg: #fdfaf5;
--cozy-ec-bg-soft: #fdf3f1;
--cozy-ec-line: rgba(149, 89, 64, 0.12);
--cozy-ec-line-strong: rgba(149, 89, 64, 0.22);
max-width: 720px;
margin: 0 auto;
padding: 0 6px 140px; color: var(--cozy-ec-ink);
font-size: 16px;
line-height: 1.5;
} @media (max-width: 767px) {
.cozy-ec-wrap {
margin-left: -12px;
margin-right: -12px;
}
} .cozy-ec-tier-banner {
background: linear-gradient(135deg, #fde8e6 0%, #fdf3f1 60%, #fdfaf5 100%);
border: 1px solid var(--cozy-ec-line);
border-radius: 14px;
padding: 14px 16px;
margin: 14px 0 16px;
}
.cozy-ec-tier-banner__title {
font-size: 15px;
font-weight: 800;
color: var(--cozy-ec-ink);
margin-bottom: 10px;
}
.cozy-ec-tier-banner__list {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.cozy-ec-tier-banner__item {
flex: 1 1 auto;
min-width: 60px;
background: rgba(255,255,255,0.7);
border-radius: 8px;
padding: 6px 8px;
text-align: center;
font-size: 13px;
line-height: 1.3;
}
.cozy-ec-tier-banner__item strong {
display: block;
color: var(--cozy-ec-ink);
font-weight: 800;
font-size: 13px;
}
.cozy-ec-tier-banner__item span {
color: var(--cozy-ec-brand);
font-weight: 800;
font-size: 15px;
}
.cozy-ec-tier-banner__note {
margin-top: 8px;
font-size: 12px;
color: var(--cozy-ec-ink-soft);
} .cozy-ec-anchor-wrap {
position: sticky;
top: 0;
z-index: 8;
background: var(--cozy-ec-bg);
margin: 0 -6px 10px;
padding-top: 4px;
}
.cozy-ec-anchor-nav {
display: flex;
gap: 8px;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
padding: 4px 6px 6px;
}
.cozy-ec-anchor-nav::-webkit-scrollbar { display: none; }
.cozy-ec-anchor-nav__chip {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
gap: 4px;
background: #fff;
border: 1px solid var(--cozy-ec-line-strong);
color: var(--cozy-ec-ink);
padding: 8px 14px;
border-radius: 999px;
text-decoration: none;
font-size: 14px;
font-weight: 600;
white-space: nowrap;
transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.cozy-ec-anchor-nav__chip:hover,
.cozy-ec-anchor-nav__chip:focus {
background: rgba(181, 76, 52, 0.08);
color: var(--cozy-ec-brand);
border-color: var(--cozy-ec-brand);
}
.cozy-ec-anchor-nav__chip.is-active {
background: var(--cozy-ec-brand);
color: #fff;
border-color: var(--cozy-ec-brand);
box-shadow: 0 2px 8px rgba(181, 76, 52, 0.3);
}
.cozy-ec-anchor-nav__icon {
font-size: 15px;
} .cozy-ec-anchor-progress {
height: 3px;
background: var(--cozy-ec-line);
margin: 0 6px;
border-radius: 2px;
overflow: hidden;
position: relative;
}
.cozy-ec-anchor-progress__bar {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: var(--cozy-ec-brand);
border-radius: 2px;
width: 30%;
transition: width 0.2s ease, left 0.2s ease;
}
.cozy-ec-anchor-progress.is-hidden {
display: none;
} .cozy-ec-section {
margin: 18px 0 22px;
scroll-margin-top: 96px; }
.cozy-ec-section__header {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 6px 10px;
margin-bottom: 8px;
padding-bottom: 6px;
border-bottom: 1px solid var(--cozy-ec-line);
}
.cozy-ec-section__title {
display: inline-flex;
align-items: baseline;
gap: 6px;
margin: 0;
font-size: 18px;
font-weight: 800;
color: var(--cozy-ec-ink);
}
.cozy-ec-section__icon { font-size: 20px; }
.cozy-ec-section__count {
font-size: 13px;
font-weight: 600;
color: var(--cozy-ec-ink-soft);
margin-left: 2px;
}
.cozy-ec-section__no-discount {
margin-left: auto;
font-size: 11px;
font-weight: 600;
color: var(--cozy-ec-ink-soft);
background: rgba(149,89,64,0.08);
padding: 3px 8px;
border-radius: 6px;
} .cozy-ec-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0;
}
.cozy-ec-item {
display: grid;
grid-template-columns: 22px 60px 1fr;
gap: 8px;
align-items: center;
padding: 10px 4px;
border-bottom: 1px solid var(--cozy-ec-line);
position: relative;
}
.cozy-ec-item:last-child {
border-bottom: none;
}
.cozy-ec-item--free {
opacity: 0.85;
}
.cozy-ec-item--purchased {
opacity: 0.7;
}
.cozy-ec-item--purchased .cozy-ec-item__title {
color: var(--cozy-ec-ink-soft);
}
.cozy-ec-item--purchased .cozy-ec-item__thumb img {
filter: grayscale(0.35);
}
.cozy-ec-item__owned {
flex: 0 0 auto;
display: inline-block;
background: #e8f3ea;
color: #2f7a44;
font-size: 10px;
font-weight: 700;
padding: 1px 6px;
border-radius: 4px;
border: 1px solid rgba(47, 122, 68, 0.25);
line-height: 1.4;
white-space: nowrap;
} .cozy-ec-item__check {
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
align-self: center;
}
.cozy-ec-checkbox {
position: absolute;
opacity: 0;
pointer-events: none;
}
.cozy-ec-item__box {
width: 20px;
height: 20px;
border-radius: 5px;
border: 2px solid var(--cozy-ec-line-strong);
background: #fff;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.15s, border-color 0.15s;
}
.cozy-ec-item__box::after {
content: '';
width: 5px;
height: 10px;
border: solid #fff;
border-width: 0 2px 2px 0;
transform: rotate(45deg) scale(0);
transition: transform 0.15s;
margin-bottom: 2px;
}
.cozy-ec-checkbox:checked + .cozy-ec-item__box {
background: var(--cozy-ec-brand);
border-color: var(--cozy-ec-brand);
}
.cozy-ec-checkbox:checked + .cozy-ec-item__box::after {
transform: rotate(45deg) scale(1);
}
.cozy-ec-checkbox:disabled + .cozy-ec-item__box {
background: #f5f0e8;
border-color: var(--cozy-ec-line);
cursor: not-allowed;
}
.cozy-ec-item.is-selected {
background: rgba(181, 76, 52, 0.04);
} .cozy-ec-item__thumb {
display: block;
width: 60px;
height: 78px;
border-radius: 5px;
overflow: hidden;
background: #fff;
border: 1px solid var(--cozy-ec-line);
text-decoration: none;
}
.cozy-ec-item__thumb img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.cozy-ec-item__thumb-fallback {
display: flex;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
font-size: 24px;
color: var(--cozy-ec-ink-soft);
} .cozy-ec-item__body {
min-width: 0;
}
.cozy-ec-item__title-link {
text-decoration: none;
color: var(--cozy-ec-ink);
}
.cozy-ec-item__title {
margin: 0 0 4px;
font-size: 14px;
font-weight: 700;
line-height: 1.35;
color: var(--cozy-ec-ink); display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.cozy-ec-item__price-row {
display: flex;
align-items: baseline;
flex-wrap: nowrap;
gap: 6px;
margin-bottom: 2px;
font-size: 13px;
overflow: hidden;
}
.cozy-ec-item__price-sale-pct {
flex: 0 0 auto;
background: var(--cozy-ec-brand);
color: #fff;
font-weight: 800;
font-size: 11px;
padding: 1px 5px;
border-radius: 4px;
}
.cozy-ec-item__price-reg del {
color: var(--cozy-ec-ink-soft);
font-size: 11px;
}
.cozy-ec-item__price-final {
color: var(--cozy-ec-ink);
font-weight: 800;
font-size: 15px;
white-space: nowrap;
}
.cozy-ec-item__price-free {
color: #2f9e44;
font-weight: 800;
font-size: 14px;
}
.cozy-ec-item__meta {
display: flex;
align-items: center;
gap: 6px;
margin-top: 1px;
flex-wrap: nowrap;
overflow: hidden;
}
.cozy-ec-item__grade {
flex: 0 0 auto;
display: inline-block;
background: #fff5ec;
color: var(--cozy-ec-brand);
font-size: 10px;
font-weight: 700;
padding: 1px 6px;
border-radius: 4px;
border: 1px solid rgba(181, 76, 52, 0.2);
line-height: 1.4;
white-space: nowrap;
}
.cozy-ec-item__detail-link {
flex: 0 0 auto;
display: inline-block;
margin-left: auto;
font-size: 11px;
color: var(--cozy-ec-ink-soft);
text-decoration: none;
white-space: nowrap;
}
.cozy-ec-item__detail-link:hover {
color: var(--cozy-ec-brand);
} .cozy-ec-summary {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 50;
background: rgba(253, 250, 245, 0.97);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-top: 1px solid var(--cozy-ec-line-strong);
box-shadow: 0 -4px 16px rgba(60, 38, 30, 0.08);
transform: translateY(110%);
transition: transform 0.25s ease;
padding: 10px 14px env(safe-area-inset-bottom);
}
.cozy-ec-summary.is-visible {
transform: translateY(0);
}
.cozy-ec-summary__inner {
max-width: 720px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 6px;
}
.cozy-ec-summary__hint {
font-size: 13px;
font-weight: 700;
color: var(--cozy-ec-brand);
background: linear-gradient(90deg, rgba(253, 232, 230, 0.7), rgba(253, 243, 241, 0.5));
padding: 6px 10px;
border-radius: 8px;
line-height: 1.3;
}
.cozy-ec-summary__hint strong {
color: var(--cozy-ec-brand);
font-weight: 900;
}
.cozy-ec-summary__counts {
font-size: 14px;
color: var(--cozy-ec-ink);
display: flex;
gap: 6px;
align-items: baseline;
}
.cozy-ec-summary__counts strong {
color: var(--cozy-ec-brand);
font-weight: 800;
font-size: 16px;
}
.cozy-ec-summary__price-row {
display: flex;
align-items: center;
gap: 10px;
}
.cozy-ec-summary__subtotal-wrap {
color: var(--cozy-ec-ink-soft);
font-size: 12px;
}
.cozy-ec-summary__total {
flex: 1;
font-size: 18px;
color: var(--cozy-ec-ink);
}
.cozy-ec-summary__total strong {
font-weight: 900;
}
.cozy-ec-summary__cta {
background: var(--cozy-ec-brand);
color: #fff;
border: none;
border-radius: 999px;
padding: 12px 22px;
font-size: 15px;
font-weight: 800;
cursor: pointer;
transition: background 0.15s, transform 0.1s;
min-width: 140px;
}
.cozy-ec-summary__cta:hover:not(:disabled) {
background: #963d29;
}
.cozy-ec-summary__cta:active:not(:disabled) {
transform: scale(0.98);
}
.cozy-ec-summary__cta:disabled {
background: #cbb7ad;
cursor: not-allowed;
} @media (min-width: 768px) {
.cozy-ec-wrap {
padding: 0 20px 100px;
}
.cozy-ec-tier-banner__list {
gap: 8px;
}
.cozy-ec-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 4px 24px;
}
.cozy-ec-item {
grid-template-columns: 26px 70px 1fr;
padding: 12px 6px;
}
.cozy-ec-item__thumb {
width: 70px;
height: 90px;
}
.cozy-ec-item__title {
font-size: 15px;
}
.cozy-ec-item__price-final {
font-size: 16px;
}
.cozy-ec-section__title {
font-size: 20px;
}
}