/* =========================================================
   СТИЛЬ САЙТУ-БЛОГУ ПАЛОМНИЦІ (АВТЕНТИЧНИЙ РАННІЙ ВЕБ 1993 РОКУ)
   Орієнтовано виключно на мобільні пристрої (Mobile-First)
   ========================================================= */

/* Скидання та базова типографіка 1993 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: #e6e6e6; /* Легкий ретро-фон навколо мобільного екрана на ПК */
  font-family: "Times New Roman", Times, Georgia, serif;
  color: #000000;
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 480px; /* Суворо мобільний формат! */
  background-color: #ffffff; /* Чистий білий фон */
  min-height: 100vh;
  border-left: 2px solid #808080;
  border-right: 2px solid #808080;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

/* Контейнер вмісту */
.mobile-wrapper {
  padding: 14px 14px 40px 14px;
}

/* Класичні розділювачі 1993 */
hr {
  border: 0;
  height: 2px;
  background-color: #808080;
  border-top: 1px solid #505050;
  border-bottom: 1px solid #ffffff;
  margin: 18px 0;
}

hr.dotted {
  border-top: 1px dashed #777;
  border-bottom: none;
  background: transparent;
  height: 1px;
}

/* Заголовки */
h1 {
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
  font-weight: bold;
  margin-bottom: 8px;
}

h2 {
  font-size: 19px;
  line-height: 1.3;
  margin-top: 16px;
  margin-bottom: 10px;
  background-color: #efefef;
  border-left: 4px solid #000080;
  border-top: 1px solid #808080;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 5px 8px;
}

h3 {
  font-size: 17px;
  margin-bottom: 6px;
  font-weight: bold;
}

p {
  margin-bottom: 12px;
  text-align: justify;
}

/* Навігаційне ретро-меню */
.retro-nav {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  background-color: #f2f2f2;
  border: 1px solid #808080;
  padding: 6px 8px;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.6;
}

.retro-nav a {
  color: #0000ee;
  font-weight: bold;
  text-decoration: underline;
  padding: 0 4px;
}

/* Верхня шапка блогу */
.site-header {
  text-align: center;
  margin-bottom: 14px;
}

.cross-symbol {
  font-size: 26px;
  color: #593e17;
  margin-bottom: 4px;
}

.header-subtitle {
  font-size: 14px;
  font-style: italic;
  color: #333333;
  margin-top: 4px;
  text-align: center;
}

.last-update-tag {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  background-color: #ffffcc;
  border: 1px dashed #999900;
  padding: 2px 6px;
  margin-top: 8px;
}

/* Картки вбудованих фотографій у тексті (гармонійний масштаб) */
.story-photo-card {
  margin: 16px auto;
  max-width: 360px; /* Зручний масштаб, який подобається користувачу */
  border: 2px outset #d4d0c8;
  background-color: #fafafa;
  padding: 6px;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.12);
}

.story-photo-card img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #777777;
  cursor: pointer;
}

.story-photo-caption {
  font-size: 13px;
  font-style: italic;
  color: #333333;
  padding-top: 6px;
  line-height: 1.35;
  text-align: center;
}

/* Виділені цитати та приказки */
.quote-highlight {
  background-color: #fffee6;
  border-left: 4px solid #8b0000;
  padding: 10px 12px;
  font-style: italic;
  margin: 14px 0;
  font-size: 16px;
  line-height: 1.4;
}

/* Вибір кількості (1-3) та кольору (1-6) */
.product-picker-box {
  background-color: #fafafa;
  border: 2px outset #d4d0c8;
  padding: 12px;
  margin: 14px 0;
}

.picker-group-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.picker-options-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.picker-btn {
  flex: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 4px;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  font-weight: bold;
  background-color: #d4d0c8;
  border: 2px outset #ffffff;
  box-shadow: 1px 1px 0px #000000;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.picker-btn:active {
  border: 2px inset #ffffff;
  transform: translate(1px, 1px);
}

.picker-btn.selected {
  background-color: #000080;
  color: #ffffff;
  border: 2px inset #ffffff;
}

.color-dot {
  width: 16px;
  height: 16px;
  border: 1px solid #333;
  margin-bottom: 3px;
  display: inline-block;
}

.color-1 { background-color: #1a1a1a; } /* Чорний */
.color-2 { background-color: #b30000; } /* Червоний */
.color-3 { background-color: #660000; } /* Бордовий */
.color-4 { background-color: #000080; } /* Синій */
.color-5 { background-color: #1b5e20; } /* Зелений */
.color-6 { background-color: #ffffff; } /* Білий */

.order-calc-display {
  background-color: #fff9e6;
  border: 1px solid #999;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: bold;
  margin-top: 8px;
}

/* Кнопка зв'язку у Viber */
.btn-viber {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin: 12px 0 4px 0;
  padding: 13px 16px;
  min-height: 48px;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.3px;
  color: #ffffff !important;
  background: linear-gradient(180deg, #7463bb 0%, #59449c 100%);
  border: 2px outset #a192e8;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(89, 68, 156, 0.35), 1px 1px 0px #000000;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  transition: background 0.15s, transform 0.1s;
}

.btn-viber:hover {
  background: linear-gradient(180deg, #8170c9 0%, #634ca9 100%);
  color: #ffffff !important;
}

.btn-viber:active {
  border: 2px inset #ffffff;
  box-shadow: none;
  transform: translate(1px, 1px);
}

/* Форма замовлення 1993 року */
.order-form-section {
  background-color: #fdfdfd;
  border: 2px ridge #808080;
  padding: 14px;
  margin: 18px 0;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 4px;
}

.form-help {
  font-size: 13px;
  color: #555555;
  font-style: italic;
  margin-bottom: 4px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 8px;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  border: 2px inset #999999;
  background-color: #ffffff;
  color: #000000;
  margin-bottom: 8px;
}

.form-input:focus, .form-textarea:focus {
  outline: 1px dotted #000080;
  background-color: #fffff8;
}

.phone-input-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-bottom: 8px;
}

.phone-prefix-fixed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e6e2da;
  border: 2px inset #999999;
  border-right: 1px solid #b0a99f;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #111111;
  padding: 0 12px;
  user-select: none;
  white-space: nowrap;
}

.phone-input-field {
  flex: 1;
  width: 100%;
  margin-bottom: 0 !important;
  border-left: none !important;
}

.selected-bundle-summary {
  background-color: #fff2cc;
  border: 1px solid #cc9900;
  padding: 8px;
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Кнопка відправки у стилі 1993 (стриманий благородний синій) */
.btn-submit {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 10px;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(180deg, #1c4b82 0%, #133966 100%);
  border: 3px outset #4d7cb3;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
}

.btn-submit:hover {
  background: linear-gradient(180deg, #235999 0%, #184478 100%);
}

.btn-submit:active {
  border: 3px inset #ffffff;
  box-shadow: none;
  transform: translate(1px, 1px);
}

/* Ретро-лічильник відвідувачів */
.visitor-counter-box {
  text-align: center;
  margin: 18px 0 10px 0;
  font-size: 14px;
}

.odometer {
  display: inline-block;
  background-color: #000000;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  font-weight: bold;
  padding: 4px 10px;
  border: 2px inset #808080;
  letter-spacing: 3px;
  margin-top: 4px;
}

/* Підвал */
.site-footer {
  text-align: center;
  font-size: 13px;
  color: #444444;
  margin-top: 15px;
}

.site-footer p {
  margin-bottom: 6px;
}

/* Спливаюче вікно підтвердження (Ретро Windows Alert Modal) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-overlay.active,
.modal-overlay.open {
  display: flex;
}

.retro-window {
  background-color: #c0c0c0;
  border: 3px outset #ffffff;
  box-shadow: 4px 4px 0px #000000;
  max-width: 400px;
  width: 100%;
}

.window-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-close-btn {
  background-color: #c0c0c0;
  border: 1px outset #ffffff;
  color: #000000;
  font-family: monospace;
  font-size: 12px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

.window-close-btn:active {
  border: 1px inset #ffffff;
}

.window-body {
  padding: 14px;
  background-color: #ffffff;
  margin: 4px;
  border: 2px inset #999999;
  font-size: 15px;
}

.window-footer {
  padding: 8px 14px 10px 14px;
  text-align: center;
}

.btn-window-ok {
  min-width: 100px;
  padding: 6px 16px;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  font-weight: bold;
  background-color: #c0c0c0;
  border: 2px outset #ffffff;
  box-shadow: 1px 1px 0px #000;
  cursor: pointer;
}

.btn-window-ok:active {
  border: 2px inset #ffffff;
}

/* =========================================================
   ЧИСТИЙ ЛАЙТБОКС ДЛЯ ПЕРЕГЛЯДУ ФОТО (БЕЗ ЗАЙВОГО ІНТЕРФЕЙСУ)
   ========================================================= */
.clean-lightbox {
  background-color: rgba(0, 0, 0, 0.88);
  padding: 10px;
}

.lightbox-wrapper {
  position: relative;
  max-width: 96vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.lightbox-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 8px 6px;
  box-sizing: border-box;
}

.lightbox-counter {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.5px;
}

.lightbox-close-icon {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.lightbox-close-icon:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  user-select: none;
}

.lightbox-img,
.image-modal-content {
  max-width: 94vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
  display: block;
}

.lightbox-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 26px;
  width: 44px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
  z-index: 10;
  user-select: none;
}

.lightbox-arrow-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-arrow-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-arrow-btn.prev {
  left: 6px;
}

.lightbox-arrow-btn.next {
  right: 6px;
}

.lightbox-bottom-nav {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  justify-content: center;
  width: 100%;
}

.lightbox-nav-action {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.lightbox-nav-action:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-nav-action:active {
  transform: scale(0.96);
}

/* =========================================================
   СОЦІАЛЬНИЙ БЛОК: ЛАЙКИ, ПЕРЕГЛЯДИ, ЧИТАЦЬКА АКТИВНІСТЬ
   ========================================================= */
.social-stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f6f6f6;
  border: 1px solid #c0c0c0;
  padding: 8px 6px;
  margin: 14px 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  color: #333333;
}

.social-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reaction-box {
  background-color: #fafaf5;
  border: 2px outset #d4d0c8;
  padding: 12px;
  text-align: center;
  margin: 18px 0;
}

.btn-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  font-weight: bold;
  color: #8b0000;
  background-color: #ffffff;
  border: 2px outset #d4d0c8;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-like:active {
  border: 2px inset #d4d0c8;
  transform: scale(0.98);
}

.btn-like.liked {
  background-color: #ffe6e6;
  border: 2px inset #ff9999;
  color: #b30000;
}

.btn-like .like-heart {
  font-size: 20px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-like.liked .like-heart {
  transform: scale(1.3);
}

/* =========================================================
   БІБЛІОТЕКА СТАТЕЙ ПАЛОМНИЦІ (КАТАЛОГ ЗАПИСІВ)
   ========================================================= */
.blog-directory {
  background-color: #fbfbfb;
  border: 2px ridge #999999;
  padding: 14px;
  margin: 20px 0;
}

.blog-directory-title {
  font-size: 18px;
  font-weight: bold;
  color: #000080;
  margin-bottom: 12px;
  border-bottom: 2px solid #000080;
  padding-bottom: 4px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-card {
  background-color: #ffffff;
  border: 1px solid #c8c8c8;
  padding: 10px;
  transition: background-color 0.15s;
}

.article-card:hover {
  background-color: #f9f9f9;
}

.article-badge {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  background-color: #e6eef8;
  color: #000080;
  border: 1px solid #b0c4de;
  padding: 1px 5px;
  margin-bottom: 4px;
}

.article-link {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #0000ee;
  text-decoration: underline;
  margin-bottom: 4px;
  line-height: 1.35;
}

.article-desc {
  font-size: 13px;
  color: #444444;
  line-height: 1.35;
  margin-bottom: 0;
}

/* =========================================================
   РОЗДІЛ КОМЕНТАРІВ І ВІДПОВІДЕЙ АННИ
   ========================================================= */
.comments-section {
  background-color: #ffffff;
  border: 2px outset #d4d0c8;
  padding: 14px;
  margin: 22px 0;
}

.comments-header {
  font-size: 19px;
  font-weight: bold;
  color: #000080;
  border-bottom: 2px solid #808080;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.comments-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.comment-item {
  border-bottom: 1px dashed #cccccc;
  padding-bottom: 14px;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.comment-author-name {
  font-size: 15px;
  font-weight: bold;
  color: #222222;
}

.comment-date {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: #777777;
}

.comment-text {
  font-size: 15px;
  line-height: 1.45;
  color: #111111;
  margin-bottom: 8px;
  text-align: left;
}

/* Відповідь Анни */
.author-reply {
  background-color: #fffaea;
  border-left: 3px solid #b8860b;
  border-top: 1px solid #eedd82;
  border-right: 1px solid #eedd82;
  border-bottom: 1px solid #eedd82;
  padding: 10px 12px;
  margin-top: 8px;
  margin-left: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.author-reply-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  color: #593e17;
  margin-bottom: 4px;
}

.author-reply-text {
  font-size: 14px;
  color: #332211;
  margin-bottom: 0;
  text-align: left;
}

/* Форма додавання коментаря */
.new-comment-form-box {
  background-color: #f5f5f5;
  border: 1px solid #b0b0b0;
  padding: 12px;
  margin-top: 12px;
}

.new-comment-title {
  font-size: 16px;
  font-weight: bold;
  color: #000080;
  margin-bottom: 8px;
}

.comment-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-input-row input {
  flex: 1;
  padding: 7px;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  border: 1px inset #999;
}

.comment-textarea {
  width: 100%;
  padding: 8px;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  border: 1px inset #999;
  margin-bottom: 8px;
  resize: vertical;
}

.btn-comment-submit {
  padding: 8px 16px;
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  font-weight: bold;
  background-color: #d4d0c8;
  border: 2px outset #ffffff;
  box-shadow: 1px 1px 0px #000;
  cursor: pointer;
}

.btn-comment-submit:active {
  border: 2px inset #ffffff;
}

.comment-success-msg {
  display: none;
  background-color: #e6ffe6;
  border: 1px solid #66cc66;
  padding: 8px;
  font-size: 14px;
  color: #006600;
  margin-top: 8px;
  text-align: center;
}

/* =========================================================
   ОНОВЛЕННЯ БЛОКУ ЦІНИ ТА МОЛИТОВНОЇ ЗАПИСКИ
   ========================================================= */
.price-callout-box {
  background-color: #fbf9f4;
  border: 1px solid #dcd3c4;
  box-shadow: 0 2px 8px rgba(60, 45, 30, 0.04);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
  text-align: center;
}

.price-callout-main {
  font-size: 17.5px;
  font-weight: bold;
  color: #3e2d1d;
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}

.price-callout-sub {
  font-size: 13.5px;
  color: #5c5044;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 4px;
}

.prayer-intentions-box {
  background-color: #f7f9ff;
  border: 1px dashed #4169e1;
  padding: 10px 12px;
  margin: 12px 0 6px 0;
}

.prayer-intentions-title {
  font-weight: bold;
  color: #000080;
  font-size: 14px;
  margin-bottom: 4px;
}

.prayer-intentions-desc {
  font-size: 13px;
  color: #333333;
  margin-bottom: 0;
  font-style: italic;
}

/* =========================================================
   БЛОК КАНОНІЧНОЇ МОЛИТВИ ДО СВЯТИТЕЛЯ СПИРИДОНА
   ========================================================= */
.canonical-prayer-card {
  background-color: #fffdf5;
  border: 3px double #8b0000;
  outline: 1px solid #c5a059;
  padding: 16px 14px;
  margin: 20px auto;
  max-width: 440px;
  box-shadow: inset 0 0 10px rgba(184, 134, 11, 0.08), 2px 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.prayer-cross-ornament {
  font-size: 32px;
  color: #8b0000;
  line-height: 1;
  margin-bottom: 4px;
}

.prayer-main-title {
  font-size: 19px;
  font-weight: bold;
  color: #8b0000;
  line-height: 1.25;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prayer-sub-title {
  font-size: 15px;
  font-weight: bold;
  color: #000080;
  margin-bottom: 8px;
}

.prayer-rubric-note {
  font-size: 12px;
  font-style: italic;
  color: #555555;
  background-color: #f7eedb;
  border-top: 1px dashed #c5a059;
  border-bottom: 1px dashed #c5a059;
  padding: 6px 8px;
  margin: 10px 0 14px 0;
  line-height: 1.4;
  text-align: center;
}

.prayer-text-body {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  text-align: justify;
  text-indent: 18px;
  margin-bottom: 14px;
}

.prayer-troparion-box {
  background-color: #fdf8eb;
  border-left: 3px solid #8b0000;
  border-top: 1px solid #eedd82;
  border-right: 1px solid #eedd82;
  border-bottom: 1px solid #eedd82;
  padding: 8px 10px;
  margin: 14px 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
}

.prayer-troparion-title {
  font-weight: bold;
  color: #8b0000;
  font-size: 13px;
  margin-bottom: 4px;
}

.prayer-pastoral-advice {
  background-color: #f0f4f8;
  border: 1px solid #b0c4de;
  padding: 8px 10px;
  margin: 14px 0 10px 0;
  font-size: 13px;
  font-style: italic;
  color: #223344;
  text-align: left;
  line-height: 1.4;
}

.btn-copy-prayer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #e8ded2;
  border: 2px outset #ffffff;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  padding: 8px 16px;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: bold;
  color: #4a2c00;
  cursor: pointer;
  margin-top: 6px;
}

.btn-copy-prayer:active {
  border: 2px inset #ffffff;
  transform: translate(1px, 1px);
}

.copy-feedback-msg {
  display: none;
  color: #006600;
  font-weight: bold;
  font-size: 13px;
  margin-top: 6px;
  background-color: #e6ffe6;
  border: 1px solid #66cc66;
  padding: 4px 8px;
}

/* =========================================================
   ВІРТУАЛЬНА МОЛИТОВНА СВІЧКА
   ========================================================= */
.virtual-candle-card {
  background: radial-gradient(circle at center top, #fffdf2 0%, #f7f1e1 100%);
  border: 2px solid #b8860b;
  outline: 1px dashed #8b5a2b;
  outline-offset: -5px;
  padding: 16px 12px;
  margin: 22px auto 16px auto;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.candle-cross-header {
  font-size: 16px;
  color: #8b0000;
  letter-spacing: 6px;
  margin-bottom: 4px;
}

.candle-card-title {
  font-size: 17px;
  color: #5c3810;
  margin: 0 0 6px 0;
  font-weight: bold;
}

.candle-card-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #4a3c2c;
  margin: 0 auto 14px auto;
  max-width: 420px;
}

.candle-display-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid #d4c4a8;
  padding: 12px 14px;
  margin-bottom: 14px;
}

/* Візуалізація свічки */
.candle-stage {
  position: relative;
  width: 46px;
  height: 95px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 4px;
}

.candle-aura {
  position: absolute;
  top: -6px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.5) 0%, rgba(255, 165, 0, 0.2) 50%, rgba(255, 255, 255, 0) 75%);
  opacity: 0.3;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.candle-stage.lit .candle-aura {
  opacity: 1;
  transform: scale(1.3);
  animation: auraPulse 2.5s infinite alternate ease-in-out;
}

.candle-flame {
  width: 14px;
  height: 24px;
  background: radial-gradient(ellipse at bottom, #ffffff 10%, #ffd700 45%, #ff4500 85%, transparent 100%);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  box-shadow: 0 0 10px #ffa500, 0 0 18px #ffd700;
  margin-bottom: 2px;
  opacity: 0.25;
  transform: scale(0.7);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.candle-stage.lit .candle-flame {
  opacity: 1;
  transform: scale(1);
  animation: flicker 1.4s infinite alternate ease-in-out;
}

.candle-wick {
  width: 2px;
  height: 6px;
  background-color: #222222;
  margin-bottom: -1px;
  z-index: 2;
}

.candle-body {
  position: relative;
  width: 20px;
  height: 54px;
  background: linear-gradient(to right, #eeddb8 0%, #fbf3db 45%, #e0c896 100%);
  border: 1px solid #b8a072;
  border-radius: 2px 2px 0 0;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.candle-wax-cross {
  font-size: 11px;
  color: #8b5a2b;
  font-weight: bold;
  opacity: 0.75;
}

.candle-base-plate {
  width: 42px;
  height: 6px;
  background: linear-gradient(to bottom, #d4af37 0%, #8b6508 100%);
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
  margin-top: -1px;
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-1deg); opacity: 0.95; }
  25% { transform: scale(1.06, 0.94) rotate(1.2deg); opacity: 1; }
  50% { transform: scale(0.96, 1.05) rotate(-0.8deg); opacity: 0.88; }
  75% { transform: scale(1.04, 0.98) rotate(1.4deg); opacity: 0.98; }
  100% { transform: scale(1) rotate(-1deg); opacity: 0.95; }
}

@keyframes auraPulse {
  0% { transform: scale(1.2); opacity: 0.75; }
  100% { transform: scale(1.45); opacity: 1; }
}

.candle-info-panel {
  text-align: left;
}

.candle-info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7a5a3a;
  font-weight: bold;
}

.candle-counter-number {
  font-size: 26px;
  font-weight: bold;
  color: #8b0000;
  line-height: 1.1;
  font-family: "Courier New", Courier, monospace;
}

.candle-counter-unit {
  font-size: 12px;
  color: #555555;
  margin-bottom: 4px;
}

.candle-current-status {
  font-size: 12px;
  font-style: italic;
  color: #333333;
}

.btn-light-candle {
  display: inline-block;
  background-color: #f7e6c4;
  border: 2px outset #ffffff;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
  padding: 10px 18px;
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  font-weight: bold;
  color: #5c3000;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-light-candle:active {
  border: 2px inset #ffffff;
  transform: translate(1px, 1px);
}

.btn-light-candle.is-lit {
  background-color: #fff2cc;
  border-color: #d4af37;
  color: #8b5a00;
}

.candle-blessing-text {
  background-color: #fff9e6;
  border: 1px dashed #b8860b;
  padding: 8px 10px;
  font-size: 13px;
  font-style: italic;
  color: #553300;
  margin-top: 10px;
  line-height: 1.4;
}

/* =========================================================
   ВІРУСНИЙ БЛОК: ПОДІЛИТИСЯ МОЛИТВОЮ (VIBER, WHATSAPP, LINK)
   ========================================================= */
.prayer-share-container {
  background-color: #fdfaf3;
  border-top: 1px dashed #b8860b;
  padding-top: 12px;
  margin-top: 14px;
  text-align: center;
}

.prayer-share-heading {
  font-size: 14px;
  font-weight: bold;
  color: #4a2c00;
  margin-bottom: 2px;
}

.prayer-share-note {
  font-size: 12px;
  color: #665544;
  font-style: italic;
  margin-bottom: 10px;
}

.prayer-share-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 6px;
}

.btn-share-viber {
  background-color: #7360f2;
  color: #ffffff;
  border: 2px outset #ffffff;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  padding: 7px 12px;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-share-viber:active {
  border: 2px inset #ffffff;
  transform: translate(1px, 1px);
}

.btn-share-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  border: 2px outset #ffffff;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  padding: 7px 12px;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-share-whatsapp:active {
  border: 2px inset #ffffff;
  transform: translate(1px, 1px);
}

.btn-share-copy {
  background-color: #e8ded2;
  color: #4a2c00;
  border: 2px outset #ffffff;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  padding: 7px 12px;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.btn-share-copy:active {
  border: 2px inset #ffffff;
  transform: translate(1px, 1px);
}

/* =========================================================
   ЗНЯТТЯ СУМНІВІВ ТА ПРАВИЛА: РОЗМІР, ЕКСПЛУАТАЦІЯ ТА НОСІННЯ
   ========================================================= */
.size-assurance-card {
  background-color: #f7fdf7;
  border: 1px solid #8fbc8f;
  border-left: 4px solid #2e8b57;
  padding: 12px 14px;
  margin: 14px 0 16px 0;
  text-align: left;
}

.size-assurance-header {
  font-size: 15px;
  font-weight: bold;
  color: #1e5833;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.size-assurance-body {
  margin-top: 6px;
}

.size-guide-item {
  font-size: 13.5px;
  line-height: 1.45;
  color: #263d2e;
  margin-bottom: 8px;
}

/* =========================================================
   МІНІ-ГАЛЕРЕЯ ЖИВИХ СВІТЛИН КОМБОСКІНІ (ВАРІАНТ А)
   ========================================================= */
.komboskini-gallery-box {
  background-color: #faf9f5;
  border: 2px inset #b0a99f;
  padding: 10px 10px 12px 10px;
  margin: 12px 0 16px 0;
  box-sizing: border-box;
}

.gallery-box-title {
  font-size: 14.5px;
  color: #2b1f14;
  margin-bottom: 8px;
  line-height: 1.35;
}

.gallery-box-subtitle {
  display: block;
  font-size: 12px;
  font-weight: normal;
  color: #665544;
  margin-top: 2px;
}

.gallery-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .gallery-thumbs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
}

.gallery-thumb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}

.gallery-thumb-item:active {
  transform: scale(0.96);
}

.thumb-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px outset #ffffff;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.gallery-thumb-item:hover .thumb-img-wrap img {
  transform: scale(1.08);
}

.thumb-caption {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: #2b1f14;
  margin-top: 4px;
  text-align: center;
  font-weight: 500;
  max-width: 100%;
  word-break: break-word;
}

.gallery-tap-hint {
  font-size: 12px;
  color: #665544;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.scarcity-subtle-note {
  font-size: 13px;
  color: #554433;
  font-style: italic;
  margin: 8px 0 12px 0;
  text-align: left;
  border-left: 2px solid #b8860b;
  padding: 4px 8px;
  background-color: #fdfbf7;
}

.price-payment-hint {
  font-size: 13px;
  color: #2b5438;
  margin-top: 8px;
  font-weight: 600;
  display: inline-block;
  background: #f1f8f3;
  border: 1px solid #d0e5d6;
  padding: 4px 12px;
  border-radius: 4px;
}

/* =========================================================
   ВИБІР КІЛЬКОСТІ ТА РІЗНИХ КОЛЬОРІВ БРАСЛЕТІВ
   ========================================================= */
.quick-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 10px 0;
}

.preset-chip-btn {
  background-color: #f2ede4;
  border: 1px solid #b8a896;
  padding: 4px 8px;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  color: #3d2b18;
  cursor: pointer;
}

.preset-chip-btn:hover {
  background-color: #e6ded2;
}

.preset-chip-btn:active {
  background-color: #d8cfc0;
}

.color-selector-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 12px 0;
}

.color-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  padding: 7px 10px;
  transition: background-color 0.15s, border-color 0.15s;
}

.color-item-row.active-item {
  background-color: #fffef5;
  border-color: #b8860b;
}

.color-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.color-item-name {
  font-weight: bold;
  color: #222222;
}

.color-item-sub {
  font-size: 12px;
  color: #666666;
  font-style: italic;
}

.color-item-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-qty-control {
  width: 32px;
  height: 32px;
  background-color: #ece8e0;
  border: 2px outset #ffffff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.btn-qty-control:active {
  border: 2px inset #ffffff;
  transform: translate(1px, 1px);
}

.color-qty-val {
  min-width: 22px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: #111111;
  font-family: "Courier New", Courier, monospace;
}

/* =========================================================
   СПОСОБИ ОПЛАТИ (ПІСЛЯПЛАТА ТА РЕКВІЗИТИ)
   ========================================================= */
.payment-selector-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.payment-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid #c0c0c0;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s, border-color 0.15s;
}

.payment-radio-card:hover {
  background-color: #fafafa;
}

.payment-radio-card.selected {
  background-color: #f7faf3;
  border: 2px solid #2e8b57;
}

.payment-radio-card input[type="radio"] {
  margin-top: 3px;
  cursor: pointer;
}

.payment-radio-text {
  font-size: 13px;
  color: #222222;
  line-height: 1.35;
}

.payment-radio-text .pay-subtext {
  font-size: 12px;
  color: #555555;
  margin-top: 2px;
}

/* =========================================================
   ПЛАВАЮЧИЙ ПАЛОМНИЦЬКИЙ ЯРЛИЧОК-ЗАПИСКА (CTA ВАРІАНТ 4)
   ========================================================= */
.floating-cta-wrap {
  position: fixed;
  bottom: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  max-width: 94%;
  z-index: 998;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn-pilgrim-note,
.btn-floating-cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(180deg, #fffdf8 0%, #f7efe1 100%);
  color: #581010;
  border: 2px double #8b0000;
  box-shadow: 0 4px 14px rgba(60, 20, 10, 0.2), 0 2px 4px rgba(0, 0, 0, 0.12);
  padding: 13px 22px;
  min-height: 48px;
  font-family: "Times New Roman", Times, serif;
  font-size: 15.5px;
  font-weight: bold;
  letter-spacing: 0.3px;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-pilgrim-note:hover,
.btn-floating-cta:hover {
  background: #ffffff;
  color: #7b0000;
  border-color: #aa1111;
  box-shadow: 0 6px 18px rgba(60, 20, 10, 0.26), 0 2px 6px rgba(139, 0, 0, 0.18);
}

.btn-pilgrim-note:active,
.btn-floating-cta:active {
  background: #f0e6d5;
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.note-cross {
  color: #8b0000;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}

.note-text {
  color: #4a0c0c;
  line-height: 1.25;
}

.note-arrow {
  color: #8b0000;
  font-size: 15px;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-pilgrim-note:hover .note-arrow {
  transform: translateX(2px);
}

@media (max-width: 520px) {
  .btn-pilgrim-note,
  .btn-floating-cta {
    font-size: 13.5px;
    padding: 10px 14px;
    min-height: 44px;
    gap: 7px;
    text-align: center;
  }
  .note-cross {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .btn-pilgrim-note,
  .btn-floating-cta {
    font-size: 12.5px;
    padding: 8px 10px;
    min-height: 40px;
    gap: 5px;
  }
}

/* =========================================================
   НОВА ПОШТА: ІНТЕРАКТИВНИЙ ВИБІР МІСТ ТА ВІДДІЛЕНЬ (API)
   ========================================================= */

.delivery-type-tabs {
  display: flex;
  gap: 8px;
  margin: 6px 0 10px 0;
}

.delivery-tab-btn {
  flex: 1;
  padding: 8px 10px;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  background: #f0f0f0;
  border: 2px outset #cccccc;
  color: #333333;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.delivery-tab-btn.active {
  background: #eef3f8;
  border: 2px inset #1c4b82;
  color: #0b2e59;
  font-weight: bold;
}

.np-delivery-container {
  background: #fdfaf3;
  border: 1px solid #d4c5aa;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.form-group-np {
  position: relative;
  margin-bottom: 8px;
}

.form-group-np:last-child {
  margin-bottom: 0;
}

.form-sublabel {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #4a2c11;
  margin-bottom: 4px;
}

.np-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.np-loader {
  position: absolute;
  right: 10px;
  font-size: 16px;
  animation: npPulse 1s infinite alternate;
}

@keyframes npPulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.np-input-wrapper .np-city-input {
  margin-bottom: 0 !important;
}

.np-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border: 2px solid #1c4b82;
  border-top: 1px solid #dce4ec;
  border-radius: 0 0 4px 4px;
  max-height: 230px;
  overflow-y: auto;
  z-index: 99999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.np-city-dropdown-header {
  padding: 6px 10px;
  background: #f0f4f8;
  color: #334455;
  font-size: 11.5px;
  font-weight: bold;
  border-bottom: 1px solid #dce4ec;
  font-family: Arial, sans-serif;
  user-select: none;
}

.np-city-item {
  padding: 9px 10px;
  border-bottom: 1px solid #eeeeee;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.1s ease;
}

.np-city-item:hover,
.np-city-item.selected {
  background-color: #e8f0fe;
  color: #000080;
}

.np-city-item b {
  color: #1a1a1a;
}

.np-city-item small {
  display: block;
  color: #666666;
  font-size: 12px;
}

.np-warehouse-select {
  cursor: pointer;
}

.np-warehouse-select:disabled {
  background-color: #f5f5f5;
  color: #888888;
  cursor: not-allowed;
}

.np-selected-badge {
  display: inline-block;
  background: #d9ead3;
  color: #1e5833;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
  margin-top: 4px;
}

/* Наявність товару та залишки */
.color-stock-badge {
  font-size: 11px;
  font-family: Arial, sans-serif;
  color: #1e5833;
  background: #eaf5eb;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: normal;
  border: 1px solid #c3e2c6;
  white-space: nowrap;
}

.color-stock-badge.low {
  color: #8b0000;
  background: #fdf2f2;
  border-color: #f1c1c1;
}

.batch-stock-notice {
  background-color: #fff9e6;
  border: 1px dashed #d4a017;
  padding: 8px 10px;
  margin: 10px 0;
  font-size: 13px;
  font-family: Arial, sans-serif;
  line-height: 1.4;
  color: #5c4300;
  border-radius: 4px;
}

/* Розумне автозаповнення для постійних покупців */
.autofill-banner {
  background: #edf4fb;
  border: 1px solid #7a9ac5;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.autofill-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.autofill-text {
  flex: 1;
  color: #0b2e59;
  line-height: 1.3;
}

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

.btn-autofill-apply {
  background: #1c4b82;
  color: #ffffff;
  border: 1px solid #0b2e59;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-autofill-dismiss {
  background: transparent;
  border: none;
  font-size: 14px;
  color: #666666;
  cursor: pointer;
}
