.gift-trigger-compact.gift-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-height: 28px;
    height: auto;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 2px 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    cursor: pointer;
    user-select: none;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.3;
    color: #4d4d4d;
    white-space: nowrap;
    text-align: left;

    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.gift-trigger-compact.gift-trigger:hover {
    opacity: 1;
    background: transparent;
    border: none;
}

.gift-trigger-compact.gift-trigger:active {
    opacity: 0.8;
}

.gift-trigger-compact.gift-trigger:focus-visible {
    outline: 2px solid #ffed4e;
    outline-offset: 2px;
    border-radius: 4px;
}

.gift-trigger-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4d4d4d;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.gift-trigger-label::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: #e6d400;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M20 12v10H4V12M2 7h20v5H2zM12 22V7M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M20 12v10H4V12M2 7h20v5H2zM12 22V7M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/></svg>") center/contain no-repeat;
    transition: background-color 0.15s ease;
}

.gift-trigger-arrow {
    color: #c0c4c9;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.15s ease, color 0.15s ease;
}

.gift-trigger-compact.gift-trigger:hover .gift-trigger-arrow {
    color: #111827;
    transform: translateX(2px);
}

.gift-trigger-compact.gift-trigger:hover .gift-trigger-label {
    color: #111827;
}

.gift-trigger-compact.gift-trigger:hover .gift-trigger-label::before {
    background-color: #111827;
}

@media (max-width: 480px) {
    .gift-trigger-compact.gift-trigger {
        min-height: 26px;
        font-size: 12px;
        gap: 4px;
    }

    .gift-trigger-label {
        font-size: 12px;
        gap: 4px;
    }

    .gift-trigger-label::before {
        width: 14px;
        height: 14px;
    }
}

.gift-modal,
.gift-modal * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.gift-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.gift-modal.is-open {
    display: block;
}

.gift-modal .gift-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: giftFadeIn 0.2s ease;
}

@keyframes giftFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gift-modal .gift-modal__container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: white;
    animation: giftSlideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes giftSlideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.gift-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.gift-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.gift-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
    margin-right: 12px;
}

.gift-back:hover {
    background: #ffed4e;
    color: #111827;
}

.gift-back:focus-visible {
    outline: 2px solid #ffed4e;
    outline-offset: 2px;
}

.gift-header__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    flex: 1;
    line-height: 1.2;
}

.gift-header__empty {
    width: 40px;
    flex-shrink: 0;
}

.gift-main-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 20px;
}

.gift-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gift-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.gift-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.gift-info-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
}

.gift-info-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.gift-info-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.gift-catalog {
    margin-bottom: 20px;
}

.gift-catalog-label {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    margin: 0 0 10px 0;
}

.gift-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gift-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 12px;
    color: #4b5563;
}

.gift-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.gift-feature {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
    padding-left: 4px;
}

.gift-feature::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffed4e;
    margin-right: 8px;
    flex-shrink: 0;
}

.gift-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.gift-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

.gift-btn-telegram {
    background: #0088cc;
    color: #ffffff;
}

.gift-btn-telegram:hover {
    background: #0077b3;
    color: #ffffff;
}

.gift-btn-phone {
    background: #ffed4e;
    color: #111827;
}

.gift-btn-phone:hover {
    background: #e6d400;
    color: #111827;
}

.gift-btn svg {
    flex-shrink: 0;
}

.gift-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.gift-detail-link {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    border-bottom: 2px solid #ffed4e;
    padding-bottom: 2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.gift-detail-link:hover {
    color: #e6d400;
    border-bottom-color: #111827;
}

.gift-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .gift-modal .gift-modal__container {
        max-width: 100%;
    }

    .gift-header {
        padding: 14px 16px;
    }

    .gift-back {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }

    .gift-header__title {
        font-size: 16px;
    }

    .gift-main-content {
        padding: 20px 16px 16px;
    }

    .gift-title {
        font-size: 20px;
    }

    .gift-info-grid {
        gap: 6px;
    }

    .gift-info-item {
        padding: 10px 12px;
    }

    .gift-info-value {
        font-size: 14px;
    }

    .gift-actions {
        flex-direction: column;
        gap: 8px;
    }

    .gift-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .gift-header {
        padding: 12px;
    }

    .gift-back {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .gift-header__title {
        font-size: 15px;
    }

    .gift-main-content {
        padding: 16px 12px 12px;
    }

    .gift-title {
        font-size: 18px;
    }

    .gift-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .gift-info-item {
        padding: 8px 10px;
    }

    .gift-info-value {
        font-size: 13px;
    }

    .gift-tags {
        gap: 4px;
    }

    .gift-tag {
        font-size: 11px;
        padding: 3px 10px;
    }

    .gift-features {
        padding: 12px;
    }

    .gift-feature {
        font-size: 13px;
    }

    .gift-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gift-modal .gift-modal__overlay,
    .gift-modal .gift-modal__container,
    .gift-trigger-compact.gift-trigger:hover .gift-trigger-arrow,
    .gift-btn {
        animation: none;
        transition: none;
    }
}