.gwc {
--gwc-shop: #4a98cf;
--gwc-don: #7fba00;
position: relative;
width: 300px;
max-width: 100%;
margin: 0 auto;
border-radius: 8px;
overflow: hidden;
background: #e9f1fb;
box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 2px 9px rgba(0, 0, 0, .08);
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 1.3;
letter-spacing: normal;
text-transform: none;
text-align: left;
}
.gwc *,
.gwc *::before,
.gwc *::after {
box-sizing: border-box;
letter-spacing: inherit;
} .gwc-radio {
position: absolute;
opacity: 0;
pointer-events: none;
}
.gwc-tabs {
display: flex;
background: #f4f5f9;
}
.gwc .gwc-tab {
flex: 1 1 50%;
margin: 0;
padding: 16px 5px;
border-radius: 8px 8px 0 0;
color: #6b7794;
font-size: 14px;
font-weight: 700;
line-height: 16px;
text-align: center;
cursor: pointer;
transition: background-color .15s, color .15s;
} .gwc .gwc-tab-shop:hover {
background: #dbe9f6;
color: var(--gwc-shop);
}
.gwc .gwc-tab-don:hover {
background: #e6f0d5;
color: #5f8c00;
}
.gwc .gwc-radio-shop:checked ~ .gwc-tabs .gwc-tab-shop {
background: var(--gwc-shop);
color: #fff;
}
.gwc .gwc-radio-don:checked ~ .gwc-tabs .gwc-tab-don {
background: var(--gwc-don);
color: #fff;
}
.gwc-radio-shop:focus-visible ~ .gwc-tabs .gwc-tab-shop,
.gwc-radio-don:focus-visible ~ .gwc-tabs .gwc-tab-don {
outline: 2px solid #1f1a5c;
outline-offset: -2px;
} .gwc a.gwc-panel {
display: none;
padding: 20px 16px 16px;
color: #4a5568;
text-decoration: none;
}
.gwc-radio-shop:checked ~ a.gwc-panel-shop,
.gwc-radio-don:checked ~ a.gwc-panel-don {
display: block;
}
.gwc-panel-shop {
--gwc-color: var(--gwc-shop);
--gwc-check: #2d2a6e;
}
.gwc-panel-don {
--gwc-color: var(--gwc-don);
--gwc-check: var(--gwc-don);
}
.gwc-title {
display: block;
margin-bottom: 12px;
color: #1f1a5c;
font-size: 14px;
font-weight: 700;
white-space: nowrap;
}
.gwc-body {
display: flex;
align-items: center;
gap: 12px;
}
.gwc-org {
flex: 0 0 72px;
display: flex;
align-items: center;
justify-content: center;
width: 72px;
height: 72px;
padding: 5px;
border-radius: 6px;
background: #fff;
box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.gwc .gwc-org img {
display: block;
width: 61px; max-width: 100%;
height: auto;
}
.gwc-list {
display: block;
font-size: 12.5px;
font-weight: 700;
white-space: nowrap;
}
.gwc-list span {
display: block;
position: relative;
padding: 3px 0 3px 16px;
}
.gwc-list span::before {
content: "";
position: absolute;
left: 3px;
top: 6px;
width: 5px;
height: 9px;
border: solid var(--gwc-check);
border-width: 0 2px 2px 0;
transform: rotate(40deg);
}
.gwc-foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 22px;
}
.gwc-btn {
flex: 0 0 150px;
padding: 9px 10px;
border-radius: 4px;
background: var(--gwc-color);
box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
color: #fff;
font-size: 14px;
font-weight: 700;
line-height: 16px;
text-align: center;
transition: filter .15s, box-shadow .15s, transform .15s;
}
.gwc-btn::after {
content: "";
display: inline-block;
width: 7px;
height: 7px;
margin-left: 12px;
border: solid #fff;
border-width: 2px 2px 0 0;
transform: rotate(45deg) translate(-1px, 1px);
} .gwc a.gwc-panel:hover .gwc-btn,
.gwc a.gwc-panel:focus-visible .gwc-btn {
filter: brightness(.94);
}
.gwc a.gwc-panel .gwc-btn:hover {
filter: brightness(.85);
box-shadow: 0 3px 7px rgba(0, 0, 0, .28);
transform: translateY(-1px);
}
.gwc .gwc-brand {
display: block;
width: auto;
max-width: none;
height: 27px; } @keyframes gwc-in {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes gwc-nudge {
0%, 100% {
transform: rotate(45deg) translate(-1px, 1px);
}
50% {
transform: rotate(45deg) translate(1px, -1px);
}
}
.gwc-title,
.gwc-org,
.gwc-list span,
.gwc-foot {
animation: gwc-in .45s ease-out both;
}
.gwc-org {
animation-delay: .06s;
}
.gwc-list span:nth-child(1) {
animation-delay: .12s;
}
.gwc-list span:nth-child(2) {
animation-delay: .2s;
}
.gwc-list span:nth-child(3) {
animation-delay: .28s;
}
.gwc-foot {
animation-delay: .36s;
} @keyframes gwc-fade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.gwc .gwc-brand {
animation: gwc-fade .7s ease-out .5s both;
} .gwc-js:not(.gwc-visible) .gwc-title,
.gwc-js:not(.gwc-visible) .gwc-org,
.gwc-js:not(.gwc-visible) .gwc-list span,
.gwc-js:not(.gwc-visible) .gwc-foot,
.gwc-js:not(.gwc-visible) .gwc-brand {
animation-play-state: paused;
} .gwc a.gwc-panel:hover .gwc-btn::after {
animation: gwc-nudge .9s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.gwc *,
.gwc *::after {
animation: none !important;
transition: none !important;
}
}