/* =====================================================================
   osmrtnice.si – modal za nakup e-svečke / e-cveta, različica 2
   Vse je omejeno na #CreateCandleForm.v2 in .v2-dialog, zato ne vpliva
   na druge modale. Odstranite razred "v2" in vse je kot prej.
   ===================================================================== */

.v2-dialog { --v2-gold: #9b8504; --v2-gold2: #c7aa00; --v2-green: #1f7a1f; --v2-green2: #2e9b2e;
  --v2-ink: #2b3140; --v2-muted: #6b7280; --v2-line: #e6e1cf; --v2-cream: #fbf8ef; --v2-bg: #f6f4ee; }

@media (min-width: 992px) { .v2-dialog.modal-lg { max-width: 860px; } }
.v2-dialog .modal-content { border-radius: 14px; overflow: hidden; }
.v2-dialog .modal-header { padding: 14px 22px; border-bottom: 1px solid var(--v2-line); background: #fff; }
.v2-dialog .modal-title { font-size: 1.05rem !important; letter-spacing: .02em; color: var(--v2-ink); }
.v2-dialog .modal-body { background: var(--v2-bg); padding: 0 !important; }

/* ---------- uvod ---------- */
#CreateCandleForm.v2 .v2-hero { display: flex; gap: 16px; align-items: center; padding: 20px 26px 6px; }
#CreateCandleForm.v2 .v2-hero-candle { flex: 0 0 26px; width: 26px; height: 78px; background: url("/Datoteke/UpravljalecDatotek/398/Design/Articles/CandleRed/0.gif") no-repeat center / contain; }
#CreateCandleForm.v2 .v2-hero h2 { font-size: 1.45rem; margin: 0 0 2px; color: var(--v2-ink); font-weight: 600; }
#CreateCandleForm.v2 .v2-hero p { margin: 0; color: var(--v2-muted); font-size: 1rem; line-height: 1.35; }
#CreateCandleForm.v2 .v2-proof { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .9rem;
  color: #5c4d00; background: #fff6d6; border: 1px solid #f0e2a6; border-radius: 999px; padding: 2px 10px; }

/* ---------- sekcije ---------- */
#CreateCandleForm.v2 > .row { margin: 0; }
#CreateCandleForm.v2 #article-duration-container > div,
#CreateCandleForm.v2 #article-id-container > div,
#CreateCandleForm.v2 #article-author-container > div,
#CreateCandleForm.v2 #article-payment-method-container > div { background: transparent !important; padding-top: 10px !important; }
#CreateCandleForm.v2 #article-id-container,
#CreateCandleForm.v2 #article-author-container,
#CreateCandleForm.v2 #article-payment-method-container { margin-top: 0 !important; }
#CreateCandleForm.v2 h3 { font-size: 1.08rem !important; text-transform: none; letter-spacing: .01em; margin-bottom: 10px !important;
  color: var(--v2-ink) !important; font-weight: 700 !important; display: flex; align-items: center; gap: 10px; }
#CreateCandleForm.v2 h3 .v2-step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--v2-ink); color: #fff; font-size: .85rem; font-weight: 700; flex: 0 0 auto; }

#CreateCandleForm.v2 .v2-hide { display: none !important; }
#CreateCandleForm:not(.v2) .v2-only,
.modal-footer:not(.v2-footer) .v2-only { display: none !important; }

/* ---------- 1. paketi ---------- */
#CreateCandleForm.v2 #article-duration-container .row { align-items: stretch; }
#CreateCandleForm.v2 .v2-tier { order: 2; padding-top: 8px; }
@media (min-width: 768px) {
  #CreateCandleForm.v2 .v2-tier-4 { order: 1; }
  #CreateCandleForm.v2 .v2-tier-3 { order: 2; }
  #CreateCandleForm.v2 .v2-tier-1 { order: 3; }
}
@media (max-width: 767.98px) {
  #CreateCandleForm.v2 .v2-tier-3 { order: 1; }
  #CreateCandleForm.v2 .v2-tier-4 { order: 2; }
  #CreateCandleForm.v2 .v2-tier-1 { order: 3; }
}
#CreateCandleForm.v2 #article-duration-container .card { border: 2px solid var(--v2-line) !important; border-radius: 12px;
  box-shadow: none !important; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; text-align: left !important; }
#CreateCandleForm.v2 #article-duration-container .card:hover { border-color: var(--v2-gold2) !important; }
#CreateCandleForm.v2 #article-duration-container .card.selected { border-color: var(--v2-green) !important;
  box-shadow: 0 0 0 3px rgba(31,122,31,.15), 0 10px 24px rgba(43,49,64,.10) !important; }
#CreateCandleForm.v2 .v2-tier-3 .card { background: var(--v2-cream); }
@media (min-width: 768px) { #CreateCandleForm.v2 .v2-tier-3 .card { transform: translateY(-6px); } }
#CreateCandleForm.v2 #article-duration-container .card-body { padding: 18px 16px 14px; }
#CreateCandleForm.v2 .v2-badge { position: absolute; top: -12px; left: 14px; font-size: .75rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--v2-green); }
#CreateCandleForm.v2 .v2-badge.gold { background: linear-gradient(90deg, var(--v2-gold), var(--v2-gold2)); }
#CreateCandleForm.v2 .v2-tier-name { font-size: 1.15rem; font-weight: 700; color: var(--v2-ink); margin: 2px 0 0; }
#CreateCandleForm.v2 .v2-until { font-size: .85rem; color: var(--v2-muted); margin-bottom: 8px; }
#CreateCandleForm.v2 .v2-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
#CreateCandleForm.v2 .v2-price b { font-size: 2rem; line-height: 1; color: var(--v2-ink); font-weight: 700; }
#CreateCandleForm.v2 .v2-price s { color: var(--v2-muted); font-size: .95rem; }
#CreateCandleForm.v2 .v2-per { font-size: .85rem; color: var(--v2-green); font-weight: 600; margin-bottom: 10px; min-height: 1.2em; }
#CreateCandleForm.v2 .v2-feat { list-style: none; padding: 0; margin: 0 0 12px; font-size: .92rem; color: var(--v2-ink); }
#CreateCandleForm.v2 .v2-feat li { position: relative; padding-left: 22px; margin: 4px 0; line-height: 1.3; }
#CreateCandleForm.v2 .v2-feat li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--v2-green); font-weight: 700; }
#CreateCandleForm.v2 .v2-feat li.no { color: #9aa0a8; }
#CreateCandleForm.v2 .v2-feat li.no::before { content: "–"; color: #b7bcc3; }
#CreateCandleForm.v2 .v2-feat li.tree::before { content: "🌳"; font-size: .8rem; }
#CreateCandleForm.v2 #article-duration-container .bottom-btn .btn { width: 100%; border-radius: 8px; padding: 10px 12px !important; font-size: .95rem !important; }
/* brezplačni paket: tišji */
#CreateCandleForm.v2 .v2-tier-1 .card { background: #fff; }
#CreateCandleForm.v2 .v2-tier-1 .v2-price b { font-size: 1.4rem; color: var(--v2-muted); }
#CreateCandleForm.v2 .v2-tier-1 .card:not(.selected) .bottom-btn .btn { background: #fff !important; color: var(--v2-ink) !important;
  border: 1px solid #cfd3d8 !important; box-shadow: none !important; }
@media (max-width: 767.98px) {
  #CreateCandleForm.v2 .v2-tier { margin-bottom: 14px !important; }
  #CreateCandleForm.v2 .v2-tier-1 .v2-feat { display: none; }
}
#CreateCandleForm.v2 #article-duration-container .col-md-12.text-end { text-align: left !important; font-size: .88rem; }
#CreateCandleForm.v2 .v2-tree-note { display: flex; gap: 8px; align-items: flex-start; color: #3f5a2a; background: #eef6e6; border-radius: 8px;
  padding: 8px 12px; font-size: .9rem; margin-bottom: 4px; }

/* ---------- 2. barva ---------- */
#CreateCandleForm.v2 #article-id-container h3 { margin-bottom: 10px !important; }
#CreateCandleForm.v2 #article-id-container .row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
#CreateCandleForm.v2 #article-id-container .row > [data-article-id] { width: auto; flex: 0 0 auto; padding: 0; }
#CreateCandleForm.v2 #article-id-container .card { width: 64px; height: 84px; margin: 0 !important; border: 2px solid var(--v2-line) !important;
  border-radius: 10px; box-shadow: none !important; position: relative; cursor: pointer; background: #fff; }
#CreateCandleForm.v2 #article-id-container .card-body { padding: 4px !important; display: grid; place-items: center; }
#CreateCandleForm.v2 #article-id-container .bottom-btn { display: none; }
#CreateCandleForm.v2 #article-id-container .card.selected { border-color: var(--v2-green) !important; box-shadow: 0 0 0 3px rgba(31,122,31,.15) !important; }
#CreateCandleForm.v2 #article-id-container .card.selected::after { content: "✓"; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--v2-green); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 700; }
#CreateCandleForm.v2.v2-free #article-id-container .paid-option .card::before { content: "1 mes."; position: absolute; bottom: 3px; left: 50%;
  transform: translateX(-50%); font-size: .62rem; font-weight: 700; color: #6b5a00; background: #fff3c4; border-radius: 4px; padding: 0 4px; white-space: nowrap; }
#CreateCandleForm.v2 .v2-color-name { font-size: .9rem; color: var(--v2-muted); margin: 8px 0 0; }

/* ---------- 3. avtor + predogled ---------- */
#CreateCandleForm.v2 #article-author-container .form-control { border-radius: 8px; padding: 10px 12px; font-size: 1rem; }
#CreateCandleForm.v2 #article-author-container h2 { font-size: .95rem !important; font-weight: 600; color: var(--v2-ink); }
#CreateCandleForm.v2 #message-container { margin-top: 10px; }
#CreateCandleForm.v2 #message:disabled { background: #f3f3f3; }
#CreateCandleForm.v2 .v2-upsell { margin-top: 6px; font-size: .9rem; color: #5c4d00; background: #fff6d6; border: 1px solid #f0e2a6;
  border-radius: 8px; padding: 6px 10px; display: none; }
#CreateCandleForm.v2.v2-free .v2-upsell { display: block; }
#CreateCandleForm.v2 .v2-upsell a { font-weight: 700; color: #7a6600; text-decoration: underline; cursor: pointer; }
#CreateCandleForm.v2 .v2-preview { margin-top: 14px; background: #fff; border: 1px dashed #d8d2bd; border-radius: 10px; padding: 10px 14px; }
#CreateCandleForm.v2 .v2-preview-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--v2-muted); margin-bottom: 6px; }
#CreateCandleForm.v2 .v2-pv-row { display: flex; align-items: flex-end; gap: 14px; min-height: 120px; }
#CreateCandleForm.v2 .v2-pv-mine { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 220px; order: 0; }
#CreateCandleForm.v2.v2-free .v2-pv-mine { order: 5; }
#CreateCandleForm.v2.v2-free .v2-pv-row { min-height: 60px; }
#CreateCandleForm.v2 .v2-pv-mine .v2-pv-art { background-repeat: no-repeat; background-size: contain; background-position: bottom center;
  width: 25px; height: 77px; transition: width .2s, height .2s; }
#CreateCandleForm.v2.v2-free .v2-pv-mine .v2-pv-art { width: 18px; height: 55px; }
#CreateCandleForm.v2 .v2-pv-author { font-weight: 700; font-size: .9rem; color: var(--v2-ink); margin-top: 4px; word-break: break-word; }
#CreateCandleForm.v2 .v2-pv-msg { font-style: italic; font-size: .85rem; color: var(--v2-muted); word-break: break-word; }
#CreateCandleForm.v2.v2-free .v2-pv-msg,
#CreateCandleForm.v2.v2-free .v2-pv-author { display: none; }
#CreateCandleForm.v2 .v2-pv-top { font-size: .7rem; font-weight: 700; color: #fff; background: var(--v2-green); border-radius: 999px; padding: 1px 8px; margin-top: 4px; }
#CreateCandleForm.v2.v2-free .v2-pv-top { display: none; }
#CreateCandleForm.v2 .v2-pv-other { width: 18px; height: 55px; background-repeat: no-repeat; background-size: 18px 55px; opacity: .55; order: 1; }
/* na širšem zaslonu: polja na levi, predogled ob strani (brez prazne površine desno) */
@media (min-width: 768px) {
  #CreateCandleForm.v2 #article-author-container .col-md { display: grid; grid-template-columns: minmax(0, 1fr) 250px; column-gap: 24px; align-items: start; }
  #CreateCandleForm.v2 #article-author-container .col-md > #author-container,
  #CreateCandleForm.v2 #article-author-container .col-md > #recipient-container,
  #CreateCandleForm.v2 #article-author-container .col-md > #message-container { grid-column: 1; }
  #CreateCandleForm.v2 #article-author-container .col-md > .v2-preview { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  #CreateCandleForm.v2 #article-author-container .v2-pv-mine { max-width: 140px; }
  #CreateCandleForm.v2 #article-author-container .v2-pv-row { gap: 10px; }
}

/* ---------- 4. plačilo ---------- */
#CreateCandleForm.v2 #article-payment-method-container .row:first-child + .row,
#CreateCandleForm.v2 #article-payment-method-container .v2-pay-row { display: flex; flex-wrap: wrap; }
#CreateCandleForm.v2 #article-payment-method-container .card { border: 2px solid var(--v2-line) !important; border-radius: 10px; box-shadow: none !important;
  cursor: pointer; margin-bottom: 10px !important; }
#CreateCandleForm.v2 #article-payment-method-container .card.selected { border-color: var(--v2-green) !important; box-shadow: 0 0 0 3px rgba(31,122,31,.15) !important; }
#CreateCandleForm.v2 #article-payment-method-container .card-body { padding: 10px !important; display: flex; align-items: center; gap: 10px; text-align: left; }
#CreateCandleForm.v2 #article-payment-method-container .card-body h5 { margin: 0 !important; font-size: .9rem; order: 2; }
#CreateCandleForm.v2 #article-payment-method-container .card-body img { height: 26px !important; }
#CreateCandleForm.v2 #article-payment-method-container .card-body .my-3,
#CreateCandleForm.v2 #article-payment-method-container .card-body .bottom-btn { display: none; }
#CreateCandleForm.v2 #article-payment-method-container .card-body::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b9bec5; flex: 0 0 auto; order: 0; }
#CreateCandleForm.v2 #article-payment-method-container .card.selected .card-body::before { border: 5px solid var(--v2-green); }
#CreateCandleForm.v2 #article-payment-method-container .card-body > div:first-of-type { order: 1; }
#CreateCandleForm.v2 #article-payment-method-container .v2-pay-row > div { display: flex; }
#CreateCandleForm.v2 #article-payment-method-container .v2-pay-row .card { width: 100%; }
#CreateCandleForm.v2 #article-payment-method-container .card-body { min-height: 64px; }
#CreateCandleForm.v2 #article-payment-method-container .card-body h5 { font-size: .82rem !important; line-height: 1.2; }
#CreateCandleForm.v2 #article-payment-method-container .card-body img { max-width: 92px; object-fit: contain; }
#CreateCandleForm.v2 #payment-details-container { padding: 0; }
#CreateCandleForm.v2 #payment-details-container > .row { margin: 0; padding: 0; }
#CreateCandleForm.v2 #payment-details-container > .row > div { padding-left: 0; }
#CreateCandleForm.v2 .v2-secure { font-size: .88rem; color: var(--v2-muted); margin: 2px 0 6px; }
#CreateCandleForm.v2 #payment-details-container { margin: 6px 0 0 !important; }
#CreateCandleForm.v2 #payment-details-container .form-control { border-radius: 8px; }
#CreateCandleForm.v2 .v2-email-label { font-size: .9rem; font-weight: 600; color: var(--v2-ink); margin-bottom: 4px; padding: 0; }
#CreateCandleForm.v2 .v2-email-label span { font-weight: 400; color: var(--v2-muted); }
#CreateCandleForm.v2:not(.v2-card) .v2-payer { display: none !important; }
#CreateCandleForm.v2.v2-card .v2-email-label { display: none !important; }
#CreateCandleForm.v2 #payment-details-container > h2 { font-weight: 600; color: var(--v2-ink); margin: 10px 0 12px !important; padding: 0; }

#CreateCandleForm.v2 #user_agreement { padding: 8px 26px 18px !important; font-size: .92rem !important; display: flex; align-items: flex-start; gap: 10px; }
#CreateCandleForm.v2 #user_agreement .form-check-input { flex: 0 0 auto; margin: 2px 0 0; float: none; }
#CreateCandleForm.v2 #user_agreement label { margin-left: 0 !important; }

/* ---------- noga: povzetek + glavni gumb ---------- */
.v2-footer { background: #fff; border-top: 1px solid var(--v2-line); padding: 10px 18px !important; display: flex !important; flex-direction: row !important;
  justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: nowrap; text-align: left !important; }
.v2-footer > * { margin: 0 !important; }
.v2-footer .v2-summary { margin-right: auto !important; line-height: 1.25; min-width: 0; }
.v2-footer .v2-summary b { display: block; color: var(--v2-ink); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-footer .v2-summary span { color: var(--v2-muted); font-size: .85rem; }
.v2-footer .close_form { background: transparent !important; border: 0 !important; color: var(--v2-muted) !important; box-shadow: none !important; }
.v2-footer .close_form .eoicons { display: none; }
.v2-footer .submit_modal_form { background: linear-gradient(90deg, #2e9b2e, #1f7a1f) !important; border: 0 !important; border-radius: 10px !important;
  padding: 12px 22px !important; font-size: 1.05rem !important; font-weight: 700 !important; box-shadow: 0 6px 16px rgba(31,122,31,.28) !important; white-space: nowrap; }
.v2-footer .submit_modal_form .eoicons { display: none; }
@media (max-width: 575.98px) {
  .v2-footer { flex-wrap: wrap; }
  .v2-footer .v2-summary { flex: 1 1 100%; }
  .v2-footer .close_form { display: none !important; }
  .v2-footer .submit_modal_form { flex: 1 1 100%; }
}

/* po uspešni oddaji: brez uvoda in povzetka, v nogi le »Zapri« */
#CreateCandleForm.v2.v2-done .v2-hero { display: none !important; }
.v2-footer.v2-footer-done { justify-content: flex-end; }
.v2-footer.v2-footer-done .v2-summary { display: none !important; }
.v2-footer.v2-footer-done .close_form { display: inline-block !important; }
#CreateCandleForm.v2 #success_message { margin: 22px 26px 0; padding: 16px 18px; border-radius: 12px; text-align: center; font-size: 1.1rem; font-weight: 600; }
#CreateCandleForm.v2 #success_message::before { content: "\2713\00a0"; }
#CreateCandleForm.v2 #share_on_facebook { padding: 18px 26px 30px; text-align: center; color: var(--v2-muted); }
#CreateCandleForm.v2 #share_on_facebook .eoicons { display: inline-block; margin-top: 14px; cursor: pointer; }

/* ---------- kartice v seznamu: enak videz kot predogled v modalu ---------- */
html body #candles_container #active_candles .article-big { display: inline-flex !important; flex-direction: column; align-items: center; text-align: center;
  width: 150px; padding: 12px 10px 14px; background: #fff !important; border: 1px solid #e6e1cf; border-radius: 10px; box-shadow: none !important; }
html body #candles_container #active_candles .article-big .article-image { flex: 0 0 auto; margin: 0 0 6px !important; }
html body #candles_container #active_candles .article-big .details { display: contents !important; }
html body #candles_container #active_candles .article-big .details .deceased { order: 1; margin: 0 !important; font-family: inherit !important; font-size: .95rem !important; font-weight: 700; color: #2b3140 !important; word-break: break-word; }
html body #candles_container #active_candles .article-big .details .author { order: 3; position: static !important; margin: auto 0 0 !important; padding-top: 8px; text-align: center !important; font-style: normal !important;
  font-weight: 700; font-size: .9rem !important; color: #2b3140 !important; word-break: break-word; }
html body #candles_container #active_candles .article-big .details .author > span { display: none !important; }
html body #candles_container #active_candles .article-big .details .message { order: 2; margin: 4px 0 0 !important; font-family: inherit !important; font-style: italic;
  font-size: .85rem !important; color: #6b7280 !important; word-break: break-word; }
html body #candles_container #active_candles .article-big .details .message::before { content: "\00bb"; }
html body #candles_container #active_candles .article-big .details .message::after { content: "\00ab"; }

/* ---------- razporeditev: plačljive (enako visoke) najprej, brezplačne v svoji vrsti ---------- */
html body #candles_container #active_candles { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; column-gap: 12px; }
html body #candles_container #active_candles > br { display: none; }
html body #candles_container #active_candles > .section_subtitle,
html body #candles_container #active_candles > .no_active_candles { flex: 0 0 100%; order: 0; }
html body #candles_container #active_candles::after { content: ""; order: 2; flex: 0 0 100%; height: 0; } /* prelom vrste med plačljivimi in brezplačnimi */
html body #candles_container #active_candles .article-big { order: 1; box-sizing: border-box; min-height: 240px; margin: 0 0 14px !important; }

/* brezplačne svečke in cvetovi: lahke kartice, slike nespremenjene */
html body #candles_container #active_candles .article-small { order: 3; display: flex !important; flex-direction: column; align-items: center; text-align: center; box-sizing: border-box;
  width: 120px; padding: 8px 8px 10px; margin: 0 0 14px !important; background: #fbfaf5; border: 1px solid #eee9d8; border-radius: 10px; overflow: hidden; }
html body #candles_container #active_candles .article-small .article-image { flex: 0 0 auto; margin: 0 0 4px !important; }
html body #candles_container #active_candles .article-small .details { display: contents !important; }
html body #candles_container #active_candles .article-small .details .deceased { order: 1; margin: 0 !important; font-size: .8rem; font-weight: 700; color: #2b3140; word-break: break-word; }
html body #candles_container #active_candles .article-small .details .author { order: 3; margin: auto 0 0 !important; padding-top: 6px; font-size: .75rem; font-style: normal; color: #6b7280; word-break: break-word; }
html body #candles_container #active_candles .article-small .details .author > span { display: none; }
html body #candles_container #active_candles .article-small .details .message { order: 2; margin: 2px 0 0 !important; font-size: .75rem; font-style: italic; color: #6b7280; word-break: break-word; }
html body #candles_container #active_candles .article-mini { order: 3; margin: 0 4px 14px !important; transition: transform .15s ease; }
html body #candles_container #active_candles .article-mini:hover { transform: translateY(-3px); }

/* ---------- obvestilo ---------- */
.v2-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 2000; background: var(--v2-ink, #2b3140); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: .95rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 92vw; text-align: center; }
