.gift-trigger-compact {
    background: none;
    border: none;
    padding: 4px 0;
    margin: 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    display: block;
}

.gift-trigger-label {
    color: #0066cc;
    font-size: 14px;
    font-weight: 500;
}

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

.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__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

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

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

@keyframes slideInRight {
    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;
}

.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: all 0.2s ease;
    flex-shrink: 0;
    margin-right: 16px;
}

.gift-back:hover {
    background: #e5e7eb;
    color: #1f2937;
}

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

.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: "—";
    color: #d1d5db;
    font-weight: 400;
    margin-right: 6px;
}

.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: all 0.2s 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: #ffea00;
    color: #000000;
}

.gift-btn-phone:hover {
    background: #e6d300;
    color: #000000;
    box-shadow: 0 4px 16px rgba(255, 234, 0, 0.3);
}

.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: #0066cc;
    text-decoration: none;
}

.gift-detail-link:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .gift-modal__container {
        max-width: 100%;
    }
    
    .gift-header {
        padding: 14px 16px;
    }
    
    .gift-back {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }
    
    .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;
    }
}