/* Taklif adjustments on top of the Bookjar theme. Keep this file small. */

/* Template covers are portrait invitations, not book jackets. */
.best_product_item .img img,
.best-book-card__image img,
.hero-banner__books .book,
.promo-card__image img { object-fit: cover; }

.navbar-brand img { height: 34px; width: auto; }
.footer-modern__logo img { height: 34px; width: auto; }
.ctn-preloader .round_spinner .text img { width: 34px; height: 34px; }

/* Decorative spots were sized for small transparent book PNGs; covers are large portrait images. */
.shap_img li img,
.bj_subscribe_bg li img {
    width: 170px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 18px 40px -12px rgba(33, 40, 51, .35);
}
.shap_img li:nth-child(odd) img { transform: rotate(-8deg); }
.shap_img li:nth-child(even) img { transform: rotate(7deg); }
.shap_img li:nth-child(2) img, .shap_img li:nth-child(4) img { width: 140px; }
.bj_subscribe_bg li img { width: 220px; }
.bj_subscribe_bg li:nth-child(1) img { transform: rotate(-10deg); }
.bj_subscribe_bg li:nth-child(2) img { transform: rotate(8deg); }
.bj_subscribe_bg li:nth-child(3) img { transform: rotate(-4deg); }
.promotion_add img { width: 240px; max-width: 100%; height: auto; border-radius: 12px; }
.promo-card__image img { width: 175px; height: 230px; border-radius: 10px; }
.best-book-card__image img { aspect-ratio: 3 / 4; }

@media (max-width: 991px) {
    .shap_img li img { width: 110px; }
    .shap_img li:nth-child(2) img, .shap_img li:nth-child(4) img { width: 90px; }
}

/* Catalogue */
.shop_product .img img { aspect-ratio: 4 / 5; width: 100%; }
.shop-empty { padding: 60px 20px; background: #fff; border-radius: 16px; }
.filter-reset { text-decoration: none; }

/* Template page */
.palette-dots { display: inline-flex; margin-right: 8px; vertical-align: middle; }
.palette-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; margin-left: -4px; box-shadow: 0 0 0 1px #e2e8f0; }
.palette-dots i:first-child { margin-left: 0; }
.bj_book_img img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.template-live-preview { overflow: hidden; border-radius: 28px; border: 8px solid #202124; max-width: 420px; margin: 0 auto; }
.template-live-preview__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; }
.template-live-preview__bar h5 { flex: 1; font-size: 15px; }
.template-live-preview__bar .form-select { width: auto; }
.template-live-preview iframe { display: block; width: 100%; height: min(760px, 78vh); border: 0; background: #fff; }
/* The theme's book image is 365px wide; keep covers at that size beside the details. */
.bj_book_single .bj_book_img { flex: 0 0 365px; max-width: 365px; }
.bj_book_single .bj_book_details_premium { flex: 1 1 320px; min-width: 0; }
@media (max-width: 767px) {
    .bj_book_single .bj_book_img { flex-basis: 100%; max-width: 100%; margin-right: 0; margin-bottom: 24px; }
}

/* Palette picker: modern take on the theme's price variation block (same tokens). */
.palette-picker { margin-top: 24px; }
.palette-picker__label { margin-bottom: 10px; font-weight: 700; color: #202124; }
.palette-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.palette-choice { position: relative; display: block; padding: 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.palette-choice:hover { border-color: #b8cff9; }
.palette-choice input { position: absolute; opacity: 0; pointer-events: none; }
.palette-choice:has(input:checked) { border-color: #4285f4; box-shadow: 0 0 0 3px rgba(66, 133, 244, .15); }
.palette-choice:has(input:focus-visible) { outline: 2px solid #4285f4; outline-offset: 2px; }
.palette-choice__strip { display: flex; height: 34px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.palette-choice__strip i { flex: 1; }
.palette-choice__name { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: #36383a; }

/* Account */
.dashboard-avatar-initials { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); background: linear-gradient(135deg, #4285f4, #7aa7f7); color: #fff; font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.dashboard-nav__logout { width: 100%; border: 0; background: none; text-align: left; }
.bj-field-error { margin: 6px 0 0 4px; font-size: 13px; font-weight: 600; color: #ef4444; }
.dashboard-empty { padding: 48px 20px; text-align: center; }
.dashboard-empty__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 50%; background: #eaf1fe; color: #4285f4; font-size: 28px; }
.dashboard-empty h4 { margin-bottom: 8px; }
.dashboard-empty p { max-width: 420px; margin: 0 auto 20px; color: #636466; }
.danger-zone { border: 1.5px solid #fecaca; border-radius: 12px; padding: 20px; background: #fff7f7; }
.danger-zone .bj_theme_btn { background: #ef4444; border-color: #ef4444; }
.invitation-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; color: #4d4e50; font-size: 14px; }
.invitation-status { display: inline-flex; padding: 2px 10px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; }
.invitation-status--live { background: #d1fae5; color: #065f46; }
.ebook-card__downloads button.ebook-card__download { border: 0; }
.form-hint { margin: 6px 0 0 4px; font-size: 13px; color: #636466; }

/* Auth */
.login-left .logo img { height: 34px; width: auto; }
.login-left h1.title { font-size: 32px; }
.auth-alert { margin: 16px 0; padding: 12px 16px; border-radius: 10px; background: #e3f5ea; color: #067647; font-weight: 600; font-size: 14px; }
.auth-link-button { border: 0; background: none; color: #4285f4; font-weight: 600; }
.login-right img { max-width: 430px; width: 100%; }

/* Invitation editor (checkout layout) */
.editor-alert { margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #b42318; font-weight: 600; }
.editor-sections { display: grid; gap: 12px; }
.editor-section { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; background: #fff; transition: opacity .2s; }
.editor-section.is-off .editor-section__fields { opacity: .45; }
.editor-section__head { display: flex; align-items: center; gap: 10px; }
.editor-section__toggle { display: flex; flex: 1; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.editor-section__toggle .form-check-input { margin: 0; }
.editor-section__move { width: 32px; height: 32px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #4d4e50; }
.editor-section__move:hover { border-color: #4285f4; color: #4285f4; }
.editor-section__fields { display: grid; gap: 10px; margin-top: 12px; }
.editor-section .form-group-modern__input { width: 100%; }
.editor-row { display: grid; gap: 8px; }
.editor-row--program { grid-template-columns: 90px 1fr 1fr; }
.editor-row--contacts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 575px) { .editor-row--program, .editor-row--contacts { grid-template-columns: 1fr; } }
.editor-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-swatch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 999px; font-size: 13px; cursor: pointer; }
.editor-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.editor-swatch i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.editor-swatch:has(input:checked) { border-color: #4285f4; background: #eaf1fe; font-weight: 600; }
.editor-actions { display: grid; gap: 10px; margin: 20px 0; }
.summary-product { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.summary-product img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.summary-product strong { display: block; color: #202124; }
.summary-product span { font-size: 13px; color: #636466; }
.phone-preview { max-width: 380px; margin: 0 auto; overflow: hidden; border: 8px solid #202124; border-radius: 34px; box-shadow: 0 30px 60px -30px rgba(33,40,51,.5); }
.phone-preview iframe { display: block; width: 100%; height: 680px; border: 0; background: #fff; }
.share-link { display: flex; gap: 8px; }
.share-link .form-control { min-width: 0; }
.btn-danger-outline { color: #ef4444 !important; border-color: #fca5a5 !important; }
.checkout-card__header .invitation-status { align-self: center; }

/* Contact without the map: the form sits on the page background. */
.contact-area--no-map { min-height: 0; background: #f5f5f5; }
.contact-area--no-map .contact-form { margin: 60px 0; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bj_mission_content .bj_theme_btn { display: inline-flex; }

/* Invitation workspace */
.workspace-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.workspace-tabs__link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #fff; color: #36383a; font-weight: 600; font-size: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.workspace-tabs__link:hover { color: #4285f4; }
.workspace-tabs__link.is-active { background: #4285f4; color: #fff; }
.workspace-tabs__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: 12px; }
.workspace-tabs__link.is-active .workspace-tabs__count { background: rgba(255,255,255,.25); }
.rsvp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.rsvp-stat { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.rsvp-stat i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
.rsvp-stat strong { display: block; font-size: 22px; line-height: 1.1; color: #202124; font-variant-numeric: tabular-nums; }
.rsvp-stat span { font-size: 13px; color: #636466; }
.rsvp-stat.is-yes i { background: #d1fae5; color: #059669; }
.rsvp-stat.is-guests i { background: #eaf1fe; color: #4285f4; }
.rsvp-stat.is-maybe i { background: #fef3c7; color: #b45309; }
.rsvp-stat.is-no i { background: #fee2e2; color: #dc2626; }
.rsvp-list { display: grid; gap: 10px; }
.rsvp-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; }
.rsvp-row__main strong { display: block; color: #202124; }
.rsvp-row__main span { font-size: 13px; color: #636466; }
.rsvp-row__main p { margin: 6px 0 0; font-size: 14px; color: #4d4e50; font-style: italic; }
.rsvp-row time { font-size: 13px; color: #94a3b8; white-space: nowrap; }
.rsvp-row__remove { border: 0; background: none; color: #94a3b8; }
.rsvp-row__remove:hover { color: #ef4444; }
.rsvp-badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rsvp-badge--yes { background: #d1fae5; color: #065f46; }
.rsvp-badge--maybe { background: #fef3c7; color: #92400e; }
.rsvp-badge--no { background: #fee2e2; color: #991b1b; }
@media (max-width: 575px) { .rsvp-row { grid-template-columns: 1fr auto; } .rsvp-row time { grid-column: 1; } }
.editor-mini-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #4d4e50; }
.editor-mini-field--check { display: flex; align-items: center; gap: 8px; align-self: end; padding-bottom: 12px; }

/* Guest list */
.guest-add, .guest-edit { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1.6fr auto; gap: 8px; }
.guest-edit { grid-column: 1 / -1; margin-top: 10px; }
.guest-add .form-group-modern__input, .guest-edit .form-group-modern__input { width: 100%; min-width: 0; }
@media (max-width: 991px) { .guest-add, .guest-edit { grid-template-columns: 1fr 1fr; } .guest-add .bj_theme_btn, .guest-edit .bj_theme_btn { grid-column: 1 / -1; } }
.guest-bulk { margin-top: 16px; }
.guest-bulk summary { cursor: pointer; font-weight: 600; color: #4285f4; }
.guest-bulk form { display: grid; gap: 8px; margin-top: 10px; }
.guest-bulk textarea { width: 100%; }
.guest-bulk__footer { display: flex; gap: 8px; }
.guest-bulk__footer .form-group-modern__input { flex: 1; }
.guest-list { display: grid; gap: 10px; }
.guest-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 12px; }
.guest-row__main strong { display: block; color: #202124; }
.guest-row__main span { font-size: 13px; color: #636466; }
.guest-row__main p { margin: 4px 0 0; font-size: 14px; font-style: italic; color: #4d4e50; }
.guest-group { display: inline-flex; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: #eaf1fe; color: #2f6fdc; font-style: normal; font-size: 12px; font-weight: 600; }
.guest-row__actions { display: flex; gap: 6px; }
.guest-row__actions form { margin: 0; }
.guest-action { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #4d4e50; }
.guest-action:hover { border-color: #4285f4; color: #4285f4; }
.guest-action--wa:hover { border-color: #25d366; color: #25d366; }
.guest-action--danger:hover { border-color: #ef4444; color: #ef4444; }
.rsvp-badge--pending { background: #f1f5f9; color: #64748b; }
.rsvp-badge--opened { background: #eaf1fe; color: #2f6fdc; }
@media (max-width: 575px) { .guest-row { grid-template-columns: 1fr; } }

/* Guest lists */
.list-create { display: flex; gap: 8px; }
.list-create .form-group-modern__input { flex: 1; min-width: 0; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.list-card { display: grid; gap: 4px; padding: 20px; border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.04); color: #202124; transition: transform .2s, box-shadow .2s; }
.list-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(33,40,51,.25); color: #202124; }
.list-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px; background: #eaf1fe; color: #4285f4; font-size: 18px; }
.list-card strong { font-size: 17px; }
.list-card span:last-child { font-size: 13px; color: #636466; }
.guest-add--member { grid-template-columns: 2fr 1fr 1.6fr auto; }
.back-link { font-weight: 600; color: #4d4e50; }
.list-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
