.card-section {
    margin-bottom: 12px;
    /*margin: 5px 0 0 0;*/
    /*background-color: #f0f0f0;*/
}
.card-section_flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.card-section > *:first-child {
    margin-top: 0;
}
.card-section > *:last-child {
    margin-bottom: 0;
}

.card-title {
    color: #627080;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 8px;
    flex: 1 1 100%;
}
.card-title span {
    color: #172A3F;
    font-weight: 700;
}

.card-props {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.card-props__item {
    display: flex;
    gap: 4px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    color: #627080;
}
.card-props__item span {
    color: #172A3F;
}
.card-props__item span .sep {
    margin-right: 4px;
}
.card-props__item a {
    color: #2081DE;
    text-decoration: underline;
}
.card-props__item a:hover {
    text-decoration: none;
}

.card-text {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #627080;
}
.card-text.--short > *:not(.card-text__short) {
    display: none;
}
.card-text__short {
    position: relative;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: none;
}
.card-text.--short .card-text__short {
    display: -webkit-box;
}
.card-text__link {
    color: #627080;
    border-bottom: 1px dashed;
    display: none;
    text-decoration: none !important;
}
.card-text.--short .card-text__link {
    display: inline-block;
}
.card-text__link:hover {
    border-bottom-color: transparent;
}
.card-text p {
    margin: 12px 0;
}
.card-text > *:first-child {
    margin-top: 0;
}
.card-text > *:last-child {
    margin-bottom: 0;
}
.card-text__short > *:first-child {
    margin-top: 0;
}
.card-text__short > *:last-child {
    margin-bottom: 0;
}

.card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0;
}
.card-list-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.card-list .card-title {
    margin-bottom: 4px;
}
.card-list[data-group] {
    display: none;
}
.card-list.--show[data-group] {
    display: flex;
}
.card-list:has([data-size-selected="nosize"]) {
    display: none !important;
}
.card-list:has(.card-size__input[value*="nosize"]) {
    display: none !important;
}
.card-list_fill {
    padding: 8px;
    border-radius: 6px;
    background-color: #e4f0fb;
}
.card-list__title {
    flex: 1 1 100%;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: .02em;
    color: #627080;
}
.card-list__item {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: column;
}
.card-list__info {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    line-height: 1.15;
    min-width: 200px;
}
.card-list__info .js-clipboard,
.card-list__info .js-buffer {
    border-bottom: 1px dashed;
    cursor: pointer;
}
.card-list__info .js-clipboard:hover,
.card-list__info .js-buffer:hover {
    border-bottom-color: transparent;
}

.card-list__sm-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    outline: 0;
    user-select: none;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    padding: 4px;
    background-color: #22a0ef;
    color: #fff;
    text-transform: capitalize;
    border-radius: 3px;
}
.card-list__sm-button:hover {
    color: #fff;
    text-decoration: none;
    background-color: #4eb4f4;
}

.card-size {
    position: relative;
    outline: 0;
    width: fit-content;
    user-select: none;
}
label.card-size {
    cursor: pointer;
}
.card-size__input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    outline: 0;
}
.card-size__text {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid #CDD1D6;
    color: #172A3F;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    /*min-width: 40px;*/
    /*height: 40px;*/
    min-width: 30px;
    height: 30px;
    border-radius: 6px;
    padding: 0 6px;
    white-space: nowrap;
    text-decoration: none;
}
.card-size__input:checked ~ .card-size__text {
    border-color: #2081DE;
    background-color: #2081DE;
    color: #fff;
}
.card-size__text.--active {
    color: #2081DE;
    border-color: #2081DE;
}

.card-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid #CDD1D6;
    user-select: none;
}
.card-preview img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: contain;
}
.card-preview_unavailable {
    position: relative;
    overflow: hidden;
}
.card-preview_unavailable .card-preview__pic,
.card-preview_unavailable img {
    filter: grayscale(1);
    opacity: .45;
}
.card-preview_unavailable::after {
    content: "";
    position: absolute;
    left: -25%;
    width: 150%;
    top: 50%;
    height: 1px;
    background: rgba(98, 112, 128, .9);
    transform: rotate(-45deg);
    transform-origin: center;
    pointer-events: none;
    z-index: 2;
}
.card-preview.active,
.card-size__text.active {
    border-color: #2081DE;
    box-shadow: 0 0 0 1px #2081DE;
}
.card-preview input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    outline: 0;
}
label.card-preview {
    cursor: pointer;
}
.card-preview__pic {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 6px;
}
/*.card-preview input:checked ~ .card-preview__pic {
    box-shadow: 0 0 0 2px #2081DE;
}*/

.card-info {
    /*border-radius: 6px;*/
    /*padding: 12px;*/
    /*font-size: 12px;*/
    /*line-height: 14px;*/
    /*font-weight: 400;*/
    /*background-color: #fff;*/
    /*border: 1px solid #B4D6FE;*/
    /*color: #627080;*/
    margin: 12px 0;
}
.card-info[data-group] {
    display: none;
}
.card-info.--show[data-group] {
    display: block;
}
.card-info:empty {
    display: none;
}
.card-info__list {
    margin-bottom: 12px;
}
.card-info > *:first-child {
    margin-top: 0;
}
.card-info > *:last-child {
    margin-bottom: 0;
}
.card-info__item {
    padding: 12px 0 0 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d3d3d3;
    /*background-color: #f0f0f0;*/
    color: #627080;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    gap: 2px;
}
.card-info__item span {
    flex: 1;
}
.card-info__item b {
    font-weight: 700;
    color: #000;
    font-size: 14px;
    text-align: right;
}
.card-info__item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.card-info__item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}
.card-info__item:not(:first-child) {
    border-top: 1px solid #fff;
}
#card-sizes-info.card-section .card-size__text {
    font-weight: normal;
    font-size: smaller;
    min-width: 25px;
    height: 25px;
}
#card-sizes-info.card-section .card-size__text.active,
.card-section .card-list__item .card-size__text.grey
{
    color: #616161;
    background-color: #d3d3d3;
}
.card-error {
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    background: #f7dedc;
    color: #e70000;
    margin: 4px 0;
    display: block;
    width: 100%;
}

.card-sizes-opt {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    text-align: left;
}
.card-sizes-opt__item {
    display: flex;
    /*align-items: center;*/
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 6px;
    flex: 0 1 calc(33.33% - 4px);
    border: 1px solid #eeeff1;
    background-color: #eeeff1;
    border-radius: 6px;
    padding: 6px 12px;
    text-align: left;
}
.card-sizes-opt__item.active {
    border: 1px solid #d4d8e1;
    background-color: #fff;
}
.card-sizes-opt__label {
    display: flex;
    align-items: center;
    width: 100%;
    /*flex-shrink: 0;*/
    /*width: 82px;*/
}
.card-sizes-opt__text {
    font-size: 12px;
    line-height: 1;
    font-weight: 400;

}
.card-sizes-opt__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}
.card-sizes-opt__footer > * {
    flex: 1;
}
.card-sizes-opt__total {
    padding: 12px;
    border: 1px dashed #d4d8e1;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    color: #3f3f3f;
    margin: 6px 0;
    width: 100%;
}
.card-sizes-opt__total ul {
    margin: 6px 0;
    padding-left: 18px;
}
.card-sizes-opt__total li:not(:last-child) {
    margin-bottom: 2px;
}
.card-sizes-opt__total:empty {
    display: none;
}
.card-sizes-opt .checkbox-item {
    width: 100%;
}
.card-sizes-opt .checkbox-item__text {
    padding-left: 4px;
    font-size: 12px;
    color: #3f3f3f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-sizes-opt .checkbox-item__input:not(:checked):focus ~ .checkbox-item__mark {
    border-color: #43b7ff;
    box-shadow: 0 0 3px #43b7ff;
}
.card-sizes-opt .checkbox-item__input:checked:focus ~ .checkbox-item__mark {
    border-color: #43b7ff;
    box-shadow: 0 0 3px #43b7ff, inset 0 0 0 3px #fff, inset 0 0 0 8px #22a0ef !important;
}
.card-sizes-opt .grid-opt-qnt {
    width: 100%;
}
.card-sizes-opt .grid-opt-qnt__inner {
    gap: 2px;
    width: 100%;
}
.card-sizes-opt input.grid-opt-qnt__input {
    width: calc(100% - 64px);
}
.card-sizes-opt button.grid-opt-qnt__plus, .card-sizes-opt button.grid-opt-qnt__minus {
    background-color: #f0f0f0;
    border-radius: 4px;
    width: 30px;
}