/* =========================================================
   WishMe Box — styles.css (ГОТОВЫЙ)
   Иконки: /static/icons/*.png
   ========================================================= */

/* ── CSS-переменные ─────────────────────────────────────── */
:root {
    --primary:   #005b8f;
    --primary-2: #3477b9;
    --bg-body:   #b8ddff;
    --bg-card:   #e5f3ff;
    --surface:   #ffffff;
    --text:      #0b2a46;
    --text-2:    #4b6a86;

    --radius-lg: 24px;
    --radius:    18px;
    --radius-sm: 12px;

    --shadow: 0 10px 30px rgba(0, 83, 143, 0.3);
}

/* ── Reset ──────────────────────────────────────────────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Body ───────────────────────────────────────────────── */
body.page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 24px 12px;
}

/* ── Карточка приложения ────────────────────────────────── */
.app-card {
    width: 360px;
    max-width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 20px 24px;
    box-shadow: var(--shadow);
}

.app-card-home {
    margin-top: 40px;
}

.wishlist-card {
    margin-top: 16px;
}

/* ── Шапка на главной ───────────────────────────────────── */
.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #89c4ff, #4f8fe8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.greeting {
    margin-left: 14px;
}

.hello {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.logo {
    font-size: 14px;
    color: #296190;
    margin-top: 2px;
}

/* ── Общая кнопка ───────────────────────────────────────── */
.btn {
    width: 100%;
    border: none;
    border-radius: var(--radius);
    padding: 13px 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 53, 99, 0.4);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-text {
    /* фикс: в некоторых webview иконка «уезжала» вверх относительно текста */
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Иконка внутри кнопки (img) */
.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* ── Плитки ─────────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.tile {
    border: none;
    border-radius: 16px;
    background: var(--primary);
    color: #ffffff;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* плитки с картинками */
.tile-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
}

.tile-title {
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
}

.invite-link {
    text-align: center;
    font-size: 14px;
    color: #225879;
    cursor: pointer;
}

/* ── Формы ──────────────────────────────────────────────── */
.wishlist-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #214667;
}

.form-control {
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 14px;
    background: #ffffff;
    color: var(--text);
    outline: none;
}

.form-control::placeholder {
    color: #9bb3c9;
}

.form-control-textarea {
    min-height: 70px;
    resize: vertical;
}

.section-label {
    font-size: 14px;
    font-weight: 500;
    color: #214667;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}

.radio-option input[type="radio"] {
    accent-color: var(--primary);
}

.form-submit-btn {
    margin-top: 8px;
}

/* ─────────────────────────────────────────────────────────
   ЕДИНАЯ ШАПКА ДЛЯ ВСЕХ СТРАНИЦ (кроме главной)
   Требование: БЕЗ нижнего закругления
   ───────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    background: var(--primary);
    margin: -20px -20px 16px;
    padding: 12px 16px;

    /* верх закруглён, низ — прямой */
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;

    min-height: 50px;
    position: relative;
}

.ph-back {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 10px 4px 0;
    flex-shrink: 0;
    line-height: 1;
}

.ph-title {
    flex: 1;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.ph-spacer {
    width: 36px;
    flex-shrink: 0;
}

/* действия справа (если есть) */
.ph-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.ph-menu-wrap {
    position: relative;
}

/* Кнопка-иконка, иконка задается КАК ФОН через CSS */
.ph-icon-btn{
    width: 34px;
    height: 34px;
    border: none;
    cursor: pointer;
    border-radius: 8px;

    background-color: #005b8f;

    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;

    display: inline-block;
}

.ph-icon-btn:hover{
    background-color: rgba(255,255,255,0.28);
}

/* ── ИКОНКИ ИЗ /static/icons (PNG) ─────────────────────────
   ВАЖНО: названия файлов должны совпадать.
   Если у тебя другие имена — просто замени в url(...)
*/
.icon-gear  { background-image: url("/static/icons/icon-gear.png"); }
.icon-share { background-image: url("/static/icons/icon-share.png"); }

/* Дропдаун меню в шапке */
.ph-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,53,99,0.25);
    padding: 6px 0;
    min-width: 190px;
    z-index: 30;
}

.ph-dropdown button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 9px 14px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
}

.ph-dropdown button:hover {
    background: #eef4ff;
}

.ph-dropdown button.danger {
    color: #b61f2b;
}

/* ── Список вишлистов ───────────────────────────────────── */
.wishlists-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.wishlist-item {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    cursor: pointer;
    gap: 10px;
    transition: background 0.15s;
}

.wishlist-item:hover {
    background: #ddeeff;
}

.wishlist-item-body {
    flex: 1;
    min-width: 0;
}

.wishlist-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wishlist-item-meta {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 2px;
}

.wishlist-item-menu-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    color: var(--text-2);
    cursor: pointer;
    padding: 4px 6px;
    flex-shrink: 0;
    line-height: 1;
}

/* Контекстное меню вишлиста */
.wishlist-item-menu {
    display: none;
    position: absolute;
    right: 8px;
    top: calc(100% + 4px);
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 18px rgba(0, 53, 99, 0.25);
    padding: 6px 0;
    min-width: 170px;
    z-index: 20;
}

.wishlist-item-menu.wishlist-item-menu--open {
    display: block;
}

.wishlist-item-menu-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
}

.wishlist-item-menu-item:hover {
    background: #eef4ff;
}

.wishlist-item-menu-item--danger {
    color: #b61f2b;
}

.wishlists-empty {
    text-align: center;
    font-size: 14px;
    color: var(--text-2);
    padding: 24px 0;
    line-height: 1.6;
}

/* ── Просмотр вишлиста (общие блоки) ────────────────────── */
.wishlist-top {
    margin-bottom: 16px;
}

.wishlist-main-info {
    margin-bottom: 12px;
}

.wishlist-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.wishlist-visibility {
    font-size: 14px;
    color: var(--text-2);
}

.wishlist-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.wishlist-action-btn {
    flex: 1;
    border-radius: 16px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.wishlist-action-btn-secondary {
    background: var(--primary-2);
}

.wishlist-action-icon-img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Пустой вишлист ─────────────────────────────────────── */
.wishlist-empty-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 24px 18px 20px;
    text-align: center;
}

.wishlist-empty-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    line-height: 1;
}

.wishlist-empty-icon img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-lg);
    display: block;
}

.wishlist-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.wishlist-empty-text {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 12px;
}

.link-button {
    border: none;
    background: transparent;
    color: #1e64b5;
    font-size: 14px;
    cursor: pointer;
}

/* ── Список подарков ────────────────────────────────────── */
.wishlist-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gift-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 10px;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 10px 12px;
    align-items: center;
}

.gift-image-wrap {
    grid-row: span 2;
}

.gift-image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.gift-image-placeholder {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #99aac6;
    font-size: 20px;
}

.gift-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gift-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.gift-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.gift-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.gift-description {
    font-size: 13px;
    color: var(--text-2);
}

.gift-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.gift-hearts {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
}

.heart { color: #c3d1e8; }
.heart.filled { color: #ff4f7a; }

.hearts-help {
    font-size: 13px;
    margin-left: 4px;
    color: var(--text-2);
    cursor: default;
}

.gift-link {
    font-size: 13px;
    color: #1e64b5;
    text-decoration: none;
}

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

.gift-menu-wrap { position: relative; }

.gift-menu-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #214667;
}

.gift-menu {
    position: absolute;
    right: 0;
    top: 22px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 53, 99, 0.3);
    padding: 6px 0;
    display: none;
    min-width: 130px;
    z-index: 10;
}

.gift-menu button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
}

.gift-menu button:hover { background: #eef4ff; }
.gift-menu .danger { color: #b61f2b; }

/* ── Добавить подарок (доп элементы) ────────────────────── */
.input-with-addon { display: flex; gap: 8px; }
.input-main { flex: 1; }

.input-addon {
    width: 60px;
    border-radius: var(--radius-sm);
    border: none;
    background: #ffffff;
    font-size: 14px;
    padding: 0 8px;
    color: var(--text);
}

.image-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--primary-2);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

/* Превью изображения — фикс расползания */
.image-preview {
    width: 110px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #9bb3c9;
    overflow: hidden;
    flex-shrink: 0;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-preview-placeholder {
    padding: 4px 6px;
    text-align: center;
}

.hearts-row {
    display: flex;
    gap: 4px;
    font-size: 20px;
    cursor: pointer;
}

/* ── Toast ─────────────────────────────────────────────── */
#app-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}

#app-toast.toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Модалка ───────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
}

.modal-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 340px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: #eef4ff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.modal-gift-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
    display: block;
}

.modal-gift-img-ph {
    width: 100%;
    height: 120px;
    border-radius: 14px;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 12px;
}

.modal-gift-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.modal-gift-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.modal-hearts {
    font-size: 18px;
    margin-bottom: 8px;
}

.modal-gift-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 8px;
}

.modal-gift-link {
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 14px;
}

/* ── Друзья ─────────────────────────────────────────────── */
.friends-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.friend-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.friend-card-top {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    gap: 12px;
}

.friend-card-top:hover {
    background: #f0f7ff;
}

.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #89c4ff, #4f8fe8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.friend-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.friend-avatar-ph {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.friend-meta {
    font-size: 12px;
    color: var(--text-2);
    margin-top: 2px;
}

.pending-badge {
    background: #fde8e8;
    color: #b61f2b;
    border-radius: 8px;
    padding: 1px 6px;
    font-size: 11px;
}

.friend-chevron {
    font-size: 18px;
    color: var(--text-2);
    transition: transform 0.2s;
}

.friend-accesses {
    padding: 10px 14px 14px;
    border-top: 1px solid #eef4ff;
}

.access-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    flex-wrap: wrap;
    border-bottom: 1px solid #f5f8fc;
}

.access-wl-title {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    min-width: 0;
}

.access-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.status-granted {
    background: #d6f0d6;
    color: #1b6e1b;
}

.status-pending {
    background: #fff3cd;
    color: #7d5a00;
}

.access-actions {
    display: flex;
    gap: 6px;
}

.btn-access-grant,
.btn-access-revoke {
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid;
}

.btn-access-grant {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-access-grant:hover {
    background: var(--primary);
    color: #fff;
}

.btn-access-revoke {
    border-color: #b61f2b;
    color: #b61f2b;
    background: transparent;
}

.btn-access-revoke:hover {
    background: #b61f2b;
    color: #fff;
}

.access-empty {
    font-size: 13px;
    color: #9bb3c9;
    padding: 6px 0;
}

.access-grant-manual {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.sf-select {
    flex: 1;
    font-size: 13px;
    padding: 7px 10px;
}

.btn-grant-manual {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-grant-manual:hover {
    background: var(--primary);
    color: #fff;
}

.btn-delete-friend {
    display: block;
    margin-top: 12px;
    border: 1px solid #b61f2b;
    color: #b61f2b;
    background: transparent;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.btn-delete-friend:hover {
    background: #fde8e8;
}

/* ── Заглушка soon ─────────────────────────────────────── */
.soon-wrap {
    text-align: center;
    padding: 30px 10px;
}

.soon-emoji {
    font-size: 52px;
    margin-bottom: 16px;
}


/* ── Вкладки ─────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    background: #d8ecff;
    border-radius: 14px;
    padding: 3px;
}

.tabs-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 11px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #4b6a86;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.tabs-tab--active {
    background: #ffffff;
    color: #005b8f;
    box-shadow: 0 2px 6px rgba(0,53,99,0.15);
}


/* --- Shared wishlist sort bar (prevent horizontal overflow in Telegram WebApp) --- */
.sort-bar{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.sort-label{
  font-size:12px;
  opacity:.85;
  flex:0 0 auto;
}
.sort-btn{
  font-size:12px;
  line-height:1;
  padding:6px 8px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.9);
  border-radius:8px;
  cursor:pointer;
  white-space:nowrap;
}
.sort-btn.active{
  border-color:rgba(0,0,0,.28);
  font-weight:600;
}

/* Telegram webview can show horizontal scrollbar if any child overflows */
html, body { overflow-x: hidden; }

@media (max-width: 420px){
  .app-card{ width:100%; max-width:360px; }
  .sort-label{ width:100%; }
}

/* =============================
   Shared wishlist (guest view)
   ============================= */

/* In Telegram WebApp the viewport can be narrow; without constraints images may blow up the layout. */
.gift-row-img{
  width:100%;
  max-height:240px;
  overflow:hidden;
  border-radius:12px;
  background:rgba(0,0,0,.04);
}

.gift-row-img-el{
  display:block;
  width:100%;
  height:240px;
  object-fit:cover;
}

@media (max-width: 420px){
  .gift-row-img{ max-height:200px; }
  .gift-row-img-el{ height:200px; }
}

/* --- Guest shared wishlist (compact cards) --- */
.gift-list-guest{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.gift-list-guest .gift-row{
  display:flex;
  gap:12px;
  padding:12px;
  border-radius:16px;
  background:#ffffff;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  align-items:flex-start;
  cursor:pointer;
}

.gift-list-guest .gift-row:active{
  transform:translateY(1px);
}

.gift-list-guest .gift-row-img{
  flex:0 0 92px;
  width:92px;
  height:92px;
  border-radius:14px;
  overflow:hidden;
  background:#eaf2f9;
}

.gift-list-guest .gift-row-img-el{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}



/* Placeholder for gift image (guest view) */
.gift-list-guest .gift-row-img-ph{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  color:rgba(0,0,0,.35);
  background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(0,0,0,.03));
}

/* Details / reserve area layout (guest view) */
.gift-list-guest .gift-row-more{
  width:100%;
}
.gift-list-guest .btn-details{
  width:auto;           /* override .btn { width:100% } */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  background:#f3f7ff;
  color:var(--text);
}
.gift-list-guest .gift-row-details{
  width:100%;
  box-sizing:border-box;
}
.gift-reserve-area{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.reserve-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:12px;
  font-size:13px;
  font-weight:600;
  background:#f1f5f9;
}
.reserve-by-me{ background:#e7fff1; }
.reserve-other{ background:#fff3e6; }

.btn-reserve, .btn-unreserve{
  border:none;
  border-radius:12px;
  padding:8px 10px;
  font-weight:700;
  cursor:pointer;
}
.btn-reserve{
  background:var(--primary);
  color:#fff;
}
.btn-unreserve{
  background:#eef4ff;
  color:var(--text);
  border:1px solid rgba(0,0,0,.10);
}

.gift-list-guest .gift-row-body{
  flex:1;
  min-width:0;
}

.gift-list-guest .gift-row-title{
  font-weight:700;
  margin:0 0 6px 0;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.gift-list-guest .gift-row-meta{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:6px;
}

.gift-list-guest .gift-row-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.gift-list-guest .gift-row-more{
  margin-top:6px;
}

.gift-list-guest .btn-details{
  padding:6px 10px;
  font-size:14px;
}

.gift-list-guest .gift-row-details{
  margin-top:8px;
  padding:8px 10px;
  background:#f6fbff;
  border:1px solid #d9e9f6;
  border-radius:12px;
  font-size:14px;
  line-height:1.35;
}

.gift-list-guest .gift-detail .muted{
  opacity:0.65;
}
