@font-face {
    font-family: "NebSvetFont";
    src: url("/themes/sunshine/layout/market/svet/font/miamanueva.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.svet-gift-page .market-main-shell {
    padding-bottom: 30px;
}

.svet-gift-header {
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.market-box1 {
    margin-bottom: 0;
}
.svet-gift-header__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: #8a6a45;
    font-size: 14px;
    text-decoration: none;
}

.svet-gift-header__back:hover {
    color: #5f452b;
    text-decoration: none;
}

.svet-gift-header__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2f2f2f;
}

.svet-gift-header__subtitle {
    margin-top: 6px;
    color: #777;
    font-size: 15px;
}

.svet-gift-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

.svet-gift-main {
    min-width: 0;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
}

.svet-gift-sidebar {
    display: flex;
    flex-direction: column;
}

.svet-gift-section-title {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 700;
    color: #2f2f2f;
}

.svet-gift-card__image-btn,
.svet-gift-card__title-btn {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.svet-gift-card__title-btn {
    display: block;
    width: 100%;
}

.svet-gift-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.svet-gift-card__price-old {
    text-decoration: line-through;
    opacity: 0.55;
}

.svet-gift-card__price-free {
    font-weight: 700;
    color: #e8b777;
}

.svet-gift-empty {
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.svet-gift-empty__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.svet-gift-empty__text {
    margin-bottom: 16px;
    color: #777;
}

.svet-gift-modal__error {
    margin-top: 10px;
    color: #c0392b;
    font-size: 14px;
}

.svet-gift-message-area {
    margin-top: 15px;
    margin-bottom: 8px;
}

#svet-send-gift-message.svet-gift-message-textarea {
    min-height: 120px;
    max-height: 420px;
    height: auto;
    resize: vertical !important;
    overflow: auto !important;
    line-height: 1.55;
    border-radius: 12px;
    transition: font-size 0.15s ease, color 0.15s ease;
}

#svet-send-gift-message.svet-gift-message-textarea::-webkit-resizer {
    display: block;
}

/* Панель оформления */

.svet-gift-style-toolbar {
    display: grid;
    grid-template-columns: 34% 16% 26% 18%;
    align-items: end;
    gap: 2%;
    margin-top: 8px;
    padding: 10px;
    border-radius: 14px;
    background: #faf7f2;
    border: 1px solid rgba(232, 183, 119, 0.25);
}

.svet-gift-style-tool {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    flex-direction: column;
}

.svet-gift-style-tool i {
    flex: 0 0 18px;
    width: 18px;
    color: #9b6a2f;
    font-size: 15px;
    text-align: center;
}

.svet-gift-style-tool label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #6b5b4c;
}

.svet-gift-style-tool .form-control {
    min-width: 0;
    height: 34px;
    padding: 5px 7px;
    border-radius: 9px;
    font-size: 13px !important;
}

.svet-gift-style-tool option:disabled {
    color: #aaa;
}

.svet-gift-style-tool--buttons {
    justify-content: flex-start;
}

/* Обычные select: Шрифт, Размер */

.svet-gift-select-wrap {
    position: relative;
    width: 100%;
}

.svet-gift-select {
    width: 100%;
    height: 34px;
    padding: 5px 34px 5px 9px !important;
    border-radius: 9px;
    cursor: pointer;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.svet-gift-select-wrap::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: 13px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #5f6368;
    border-bottom: 2px solid #5f6368;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

/* Select цвета */

.svet-gift-color-select-wrap {
    position: relative;
    width: 100%;
}

.svet-gift-color-select {
    width: 100%;
    height: 34px;
    border-radius: 9px;
    cursor: pointer;

    color: transparent;
    text-shadow: none;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.svet-gift-color-select option {
    color: #2f2f2f;
}

.svet-gift-color-select-dot {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    transform: translateY(-50%);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.svet-gift-color-select-wrap::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: 13px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #5f6368;
    border-bottom: 2px solid #5f6368;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.svet-gift-color-select-wrap[data-color="default"] .svet-gift-color-select-dot {
    background: #2f2f2f;
}

.svet-gift-color-select-wrap[data-color="warm"] .svet-gift-color-select-dot {
    background: #ff8f00;
}

.svet-gift-color-select-wrap[data-color="gold"] .svet-gift-color-select-dot {
    background: #b47a2c;
}

.svet-gift-color-select-wrap[data-color="muted"] .svet-gift-color-select-dot {
    background: #5c85d9;
}

/* Кнопки начертания */

.svet-gift-style-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ededed;
    border-radius: 9px;
    background: #ffffff;
    color: #8a6a45;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.svet-gift-style-toggle:hover {
    background: rgba(232, 183, 119, 0.14);
    color: #6f4c24;
}

.svet-gift-style-toggle.is-active {
    background: #e8b777;
    border-color: #e8b777;
    color: #ffffff;
}

.svet-gift-style-toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f4f4f4;
    color: #999;
    border-color: #ddd;
}

/* Стили послания */

.memorial-gift-message-styled {
    line-height: 1.55;
    white-space: pre-line;
}

.svet-msg-size-normal {
    font-size: 15px;
}

.svet-msg-size-large {
    font-size: 18px;
}

.svet-msg-size-xlarge {
    font-size: 21px;
}

.svet-msg-weight-normal {
    font-weight: 400;
    font-style: normal;
}

.svet-msg-weight-medium,
.svet-msg-weight-bold {
    font-weight: 600;
    font-style: normal;
}

.svet-msg-weight-italic {
    font-weight: 400;
    font-style: italic;
}

.svet-msg-weight-bold_italic {
    font-weight: 600;
    font-style: italic;
}

.svet-msg-font-system {
    font-family: inherit;
}

.svet-msg-font-serif {
    font-family: Georgia, "Times New Roman", serif;
}

.svet-msg-font-soft {
    font-family: "Trebuchet MS", Arial, sans-serif;
}

.svet-msg-font-decorative {
    font-family: "NebSvetFont", Georgia, "Times New Roman", serif;
}

.svet-msg-color-default {
    color: #2f2f2f;
}

.svet-msg-color-warm {
    color: #ff8f00;
}

.svet-msg-color-gold {
    color: #b47a2c;
}

.svet-msg-color-muted {
    color: #5c85d9;
}

/* Адаптив */

@media (max-width: 991px) {
    .svet-gift-layout {
        grid-template-columns: 1fr;
    }

    .svet-gift-sidebar {
        order: -1;
    }
}

@media (max-width: 900px) {
    .svet-gift-style-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 520px) {
    .svet-gift-style-toolbar {
        grid-template-columns: 1fr;
    }
}


.svet-gift-page-select-dialog {
    max-width: 760px;
}

.svet-gift-page-select-modal {
    border-radius: 18px;
    overflow: hidden;
}

.svet-gift-page-select-modal__header {
    border-bottom: 1px solid rgba(232, 183, 119, 0.22);
}

.svet-gift-page-select-modal__header .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #2f2f2f;
}

.svet-gift-page-select-modal__body {
    padding: 18px;
}

.svet-gift-page-select-intro {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #faf7f2;
    color: #6b5b4c;
    font-size: 14px;
    line-height: 1.45;
}

.svet-gift-page-select-section {
    margin-top: 16px;
}

.svet-gift-page-select-section:first-of-type {
    margin-top: 0;
}

.svet-gift-page-select-section__title {
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #2f2f2f;
}

.svet-gift-page-select-list {
    display: grid;
    gap: 8px;
}

.svet-gift-page-select-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(232, 183, 119, 0.22);
    border-radius: 14px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.svet-gift-page-select-item:hover {
    background: #fffaf3;
    border-color: rgba(232, 183, 119, 0.55);
}

.svet-gift-page-select-item__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5efe6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svet-gift-page-select-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.svet-gift-page-select-item__avatar-fallback {
    color: #b47a2c;
    font-size: 18px;
}

.svet-gift-page-select-item__body {
    min-width: 0;
}

.svet-gift-page-select-item__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2f2f2f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.svet-gift-page-select-item__meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #8b8178;
}

.svet-gift-page-select-item__arrow {
    color: #c49a5f;
    font-size: 13px;
    text-align: right;
}

.svet-gift-page-select-empty {
    padding: 24px 16px;
    border-radius: 16px;
    background: #faf7f2;
    text-align: center;
}

.svet-gift-page-select-empty__title {
    font-size: 16px;
    font-weight: 700;
    color: #2f2f2f;
    margin-bottom: 6px;
}

.svet-gift-page-select-empty__text {
    font-size: 14px;
    color: #777;
    line-height: 1.45;
}

@media (max-width: 520px) {
    .svet-gift-page-select-item {
        grid-template-columns: 40px minmax(0, 1fr) 18px;
    }

    .svet-gift-page-select-item__avatar {
        width: 40px;
        height: 40px;
    }
}

.svet-market-sidebar-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 -20px 15px;
    line-height: 1;
    gap: 10px;
    border-bottom: 1px solid #f0f2f5;
    padding: 6px 32px 20px;
    font-size: 15px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #1f2937;

}