/* Sama Elements — styles for the add-on widgets. Colours fall back to Sama Builder's accent variables. */
.sb-root { --se-accent: var(--sb-accent, #0b2f55); --se-accent-2: var(--sb-accent-2, #2e9cca); --se-line: var(--sb-line, #dbe6ed); --se-soft: var(--sb-soft, #f4f9fc); }

/* Flip box */
.se-flip { height: 280px; perspective: 1200px; outline: none; }
.se-flip__inner { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.se-flip__face {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	padding: 24px; text-align: center; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
}
.se-flip__front { background: var(--se-soft); color: var(--se-accent); border: 1px solid var(--se-line); }
.se-flip__back { background: var(--se-accent); color: #fff; }
.se-flip__face h3 { margin: 0; color: inherit; font-size: 1.3em; }
.se-flip__face p { margin: 0; }
.se-flip__img { width: 72px; height: 72px; object-fit: contain; }
.se-flip__back .sb-button { background: #fff; border-color: #fff; color: var(--se-accent); margin-top: 6px; }
.se-flip--h .se-flip__back { transform: rotateY(180deg); }
.se-flip--v .se-flip__back { transform: rotateX(180deg); }
.se-flip--h:hover .se-flip__inner, .se-flip--h:focus-within .se-flip__inner, .se-flip--h:focus .se-flip__inner { transform: rotateY(180deg); }
.se-flip--v:hover .se-flip__inner, .se-flip--v:focus-within .se-flip__inner, .se-flip--v:focus .se-flip__inner { transform: rotateX(180deg); }
.se-flip:focus-visible { outline: 3px solid var(--se-accent-2); outline-offset: 3px; border-radius: 16px; }

/* Timeline */
.se-timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px; }
.se-timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; inset-inline-start: 9px; width: 2px; background: var(--se-accent-2); opacity: .45; }
.se-timeline__item { position: relative; padding-inline-start: 40px; }
.se-timeline__item::before { content: ""; position: absolute; top: 20px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--se-accent-2); box-sizing: border-box; }
.se-timeline__card { padding: 18px 22px; background: var(--se-soft); border: 1px solid var(--se-line); border-radius: 12px; }
.se-timeline__date { display: inline-block; font-weight: 800; font-size: .88em; color: var(--se-accent-2); margin-bottom: 4px; }
.se-timeline__card h3 { margin: 0 0 .3em; font-size: 1.15em; }
.se-timeline__card p { margin: 0; }
@media (min-width: 768px) {
	.se-timeline--center::before { inset-inline-start: calc(50% - 1px); }
	.se-timeline--center .se-timeline__item { width: 50%; padding-inline-start: 0; padding-inline-end: 40px; }
	.se-timeline--center .se-timeline__item::before { inset-inline-start: auto; inset-inline-end: -8px; }
	.se-timeline--center .se-timeline__item:nth-child(even) { margin-inline-start: 50%; padding-inline-end: 0; padding-inline-start: 40px; }
	.se-timeline--center .se-timeline__item:nth-child(even)::before { inset-inline-end: auto; inset-inline-start: -8px; }
}

/* Marquee */
.se-marquee { display: flex; overflow: hidden; gap: var(--se-gap, 36px); font-size: 22px; font-weight: 700; --se-speed: 25s; direction: ltr; }
.se-marquee__track { flex: none; display: flex; align-items: center; gap: var(--se-gap, 36px); min-width: 100%; justify-content: space-around; animation: se-marquee var(--se-speed) linear infinite; }
.se-marquee--rev .se-marquee__track { animation-direction: reverse; }
.se-marquee--pause:hover .se-marquee__track { animation-play-state: paused; }
.se-marquee__item { white-space: nowrap; }
[dir="rtl"] .se-marquee__item { direction: rtl; }
.se-marquee__sep { color: var(--se-accent-2); }
@keyframes se-marquee { to { transform: translateX(calc(-100% - var(--se-gap, 36px))); } }

/* Logos */
.se-logos { display: grid; gap: 16px; align-items: center; }
.se-logos__item { display: grid; place-items: center; padding: 14px; min-height: 84px; }
.se-logos--boxed .se-logos__item { background: #fff; border: 1px solid var(--se-line); border-radius: 12px; }
.se-logos img { display: block; max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; transition: filter .25s, opacity .25s; }
.se-logos--gray img { filter: grayscale(1); opacity: .65; }
.se-logos--gray .se-logos__item:hover img { filter: none; opacity: 1; }

/* Before / after */
.se-ba { position: relative; overflow: hidden; line-height: 0; --se-pos: 50%; direction: ltr; user-select: none; }
.se-ba__img { display: block; width: 100%; height: auto; }
.se-ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--se-pos)) 0 0); }
.se-ba__before .se-ba__img { width: 100%; height: 100%; object-fit: cover; }
.se-ba__handle { position: absolute; top: 0; bottom: 0; left: var(--se-pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .4); pointer-events: none; }
.se-ba__handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #0b2f55; display: grid; place-items: center; font: 700 18px/1 system-ui, sans-serif; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.se-ba__label { position: absolute; top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(8, 20, 34, .7); color: #fff; font-size: 13px; line-height: 1.4; pointer-events: none; }
.se-ba__label--before { left: 12px; }
.se-ba__label--after { right: 12px; }
.se-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.se-ba:focus-within .se-ba__handle::after { outline: 3px solid var(--se-accent-2); }

/* Switcher */
.se-switch__bar { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.se-switch__label { font-weight: 700; opacity: .55; }
.se-switch__label.is-on { opacity: 1; color: var(--se-accent); }
.se-switch__toggle { position: relative; flex: none; width: 58px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: var(--se-accent); cursor: pointer; }
.se-switch__toggle i { position: absolute; top: 4px; inset-inline-start: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.se-switch__toggle[aria-checked="true"] i { inset-inline-start: 32px; }
.se-switch__pane > *:first-child { margin-top: 0; }
.se-switch__pane > *:last-child { margin-bottom: 0; }

/* Team */
.se-team { padding: 26px 22px; background: #fff; color: #1c2b3a; border: 1px solid var(--se-line); border-radius: 16px; }
.se-team__img { display: flex; margin-bottom: 14px; }
.se-team__img img { display: block; width: 120px; max-width: 100%; height: auto; object-fit: cover; border-radius: 12px; }
.se-team--round .se-team__img img { border-radius: 50%; }
.se-team__name { margin: 0; font-size: 1.2em; }
.se-team__role { margin: 2px 0 10px; color: var(--se-accent-2); font-weight: 700; font-size: .92em; }
.se-team__bio { margin: 0; opacity: .85; font-size: .95em; }
.se-team__links { display: flex; gap: 8px; margin-top: 14px; }
.se-team__links a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--se-soft); color: var(--se-accent); text-decoration: none; }
.se-team__links a:hover { background: var(--se-accent); color: #fff; }
.se-team__links .dashicons { font-size: 18px; width: 18px; height: 18px; }

/* Steps */
.se-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: se-step; }
.se-steps--h { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.se-steps__item { position: relative; counter-increment: se-step; display: flex; gap: 14px; }
.se-steps--h .se-steps__item { flex-direction: column; }
.se-steps__item::before { content: counter(se-step); flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--se-accent); color: #fff; font-weight: 800; font-size: 1.1em; }
.se-steps__item h3 { margin: 0 0 .25em; font-size: 1.1em; }
.se-steps__item p { margin: 0; opacity: .85; }
@media (min-width: 768px) {
	.se-steps--h .se-steps__item:not(:last-child)::after { content: ""; position: absolute; top: 22px; inset-inline-start: 58px; inset-inline-end: -10px; border-top: 2px dashed var(--se-line); }
}

/* Alert */
.se-alert { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 16px 20px; border-radius: 12px; border: 1px solid; border-inline-start-width: 5px; }
.se-alert__body strong { display: block; margin-bottom: 2px; }
.se-alert__body p { margin: 0; }
.se-alert__close { flex: none; border: 0; background: none; cursor: pointer; font-size: 16px; color: inherit; padding: 4px 6px; border-radius: 6px; }
.se-alert--info { background: #eaf4fb; border-color: #9cc9e3; color: #0b4a72; }
.se-alert--success { background: #eaf7f0; border-color: #9ed3b6; color: #14603a; }
.se-alert--warning { background: #fff6e5; border-color: #f0cf8a; color: #7a5200; }
.se-alert--danger { background: #fcefed; border-color: #eab3ab; color: #8f2a20; }

/* Dual heading + typing */
.se-dual, .se-typing { margin: 0; }
.se-dual span, .se-typing__word { color: var(--se-accent-2); }
.se-dual--bg span { color: #fff; background: var(--se-accent-2); padding: 0 .3em; border-radius: .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.se-dual--underline span { color: inherit; background: linear-gradient(var(--se-accent-2), var(--se-accent-2)) 0 100% / 100% .18em no-repeat; }
.se-typing__word { border-inline-end: .08em solid currentColor; padding-inline-end: .08em; white-space: nowrap; }
.se-typing__word.is-typing { animation: se-caret .8s steps(1) infinite; }
@keyframes se-caret { 50% { border-color: transparent; } }

/* Price list */
.se-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.se-plist__row { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.se-plist__dots { flex: 1; border-bottom: 2px dotted var(--se-line); transform: translateY(-4px); min-width: 20px; }
.se-plist__price { color: var(--se-accent-2); white-space: nowrap; }
.se-plist p { margin: 2px 0 0; opacity: .75; font-size: .93em; }

/* CTA banner */
.se-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 260px; padding: 40px 32px; border-radius: 18px; background: var(--se-accent) center / cover no-repeat; color: #fff; text-align: center; }
.se-cta::before { content: ""; position: absolute; inset: 0; }
.se-cta > * { position: relative; }
.se-cta h3 { margin: 0; color: inherit; font-size: clamp(1.4em, 3vw, 2em); }
.se-cta p { margin: 0; max-width: 60ch; }
.se-cta .se-cta__btn { background: #fff; border-color: #fff; color: #0b2f55; margin-top: 6px; }

/* Table */
.se-table-wrap { overflow-x: auto; border: 1px solid var(--se-line); border-radius: 12px; }
.se-table { width: 100%; border-collapse: collapse; background: #fff; color: #1c2b3a; margin: 0; }
.se-table th, .se-table td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--se-line); }
.se-table thead th { background: var(--se-accent); color: #fff; font-weight: 700; white-space: nowrap; }
.se-table tbody tr:last-child > * { border-bottom: 0; }
.se-table--striped tbody tr:nth-child(even) { background: var(--se-soft); }
.se-table__yes { color: #1b7a4b; font-weight: 800; }
.se-table__no { color: #b3382c; font-weight: 800; }

/* Hours */
.se-hours { list-style: none; margin: 0; padding: 0; }
.se-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--se-line); }
.se-hours li:last-child { border-bottom: 0; }
.se-hours li span:first-child { font-weight: 700; }
.se-hours .is-closed span:last-child { color: #b3382c; font-weight: 700; }

/* Review */
.se-review { margin: 0; padding: 24px; background: #fff; color: #1c2b3a; border: 1px solid var(--se-line); border-radius: 16px; --se-star: #f5a623; }
.se-stars { display: inline-block; position: relative; font-size: 22px; line-height: 1; letter-spacing: 2px; color: #d7dee5; direction: ltr; }
.se-stars span { background: linear-gradient(90deg, var(--se-star) var(--se-rate), #d7dee5 var(--se-rate)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.se-review blockquote { margin: 12px 0 16px; padding: 0; border: 0; font-size: 1.05em; line-height: 1.8; }
.se-review__who { display: flex; align-items: center; gap: 12px; }
.se-review__who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.se-review__who span { display: flex; flex-direction: column; line-height: 1.4; text-align: start; }
.se-review__who small { opacity: .65; }

/* Circle progress */
.se-circle { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.se-circle__ring { position: relative; width: 150px; height: 150px; max-width: 100%; }
.se-circle__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.se-circle__track { stroke: var(--se-line); }
.se-circle__bar { stroke: var(--se-accent-2); transition: stroke-dashoffset 1.2s ease; }
.se-circle__ring.is-wait .se-circle__bar { stroke-dashoffset: var(--se-len) !important; }
.se-circle__ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5em; font-weight: 800; color: var(--se-accent); }
.se-circle__label { font-weight: 700; }

/* Hover card */
.se-hcard { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; color: #fff; text-decoration: none; --se-overlay: rgba(8, 35, 64, .78); outline-offset: 3px; }
.se-hcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.se-hcard:hover .se-hcard__img, .se-hcard:focus .se-hcard__img { transform: scale(1.06); }
.se-hcard__cap { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--se-overlay); transition: transform .35s, opacity .35s; }
.se-hcard__cap strong { font-size: 1.15em; }
.se-hcard__cap span { font-size: .93em; opacity: .92; }
.se-hcard--slide .se-hcard__cap { transform: translateY(100%); }
.se-hcard--fade .se-hcard__cap { inset: 0; justify-content: center; text-align: center; opacity: 0; }
.se-hcard--slide:hover .se-hcard__cap, .se-hcard--slide:focus .se-hcard__cap { transform: none; }
.se-hcard--fade:hover .se-hcard__cap, .se-hcard--fade:focus .se-hcard__cap { opacity: 1; }
@media (hover: none) {
	.se-hcard--slide .se-hcard__cap { transform: none; }
	.se-hcard--fade .se-hcard__cap { opacity: 1; }
}

/* Modal */
.se-modal__wrap { display: flex; }
.se-modal { width: 560px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 16px; color: #1c2b3a; background: #fff; box-shadow: 0 24px 80px rgba(8, 20, 34, .4); }
.se-modal::backdrop { background: rgba(8, 20, 34, .6); }
.se-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--se-line, #dbe6ed); }
.se-modal__head h3 { margin: 0; font-size: 1.2em; }
.se-modal__close { border: 0; background: #eef2f6; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.se-modal__body { padding: 20px 22px 24px; overflow-y: auto; }
.se-modal__body > *:first-child { margin-top: 0; }
.se-modal__body > *:last-child { margin-bottom: 0; }

/* WhatsApp + floating buttons */
.se-chat__wrap { display: flex; }
.se-chat { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #1fa855; color: #fff; font-weight: 700; text-decoration: none; }
.se-chat:hover { filter: brightness(1.08); color: #fff; }
.se-chat .dashicons { font-size: 22px; width: 22px; height: 22px; }
.se-chat--float { position: fixed; bottom: 20px; z-index: 990; box-shadow: 0 8px 26px rgba(0, 0, 0, .28); }
.se-float--end { inset-inline-end: 20px; }
.se-float--start { inset-inline-start: 20px; }
.se-totop { position: fixed; bottom: 84px; z-index: 989; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--se-accent, #0b2f55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.se-totop[hidden] { display: none; }
.se-readbar { position: fixed; top: 0; inset-inline: 0; z-index: 9990; height: 4px; background: transparent; pointer-events: none; }
.admin-bar .se-readbar { top: 32px; }
.se-readbar i { display: block; height: 100%; width: 0; background: var(--se-accent-2, #2e9cca); }

/* Fancy divider */
.se-fdiv { display: flex; align-items: center; gap: 16px; --se-line: var(--sb-line, #dbe6ed); font-weight: 700; border: 0; }
.se-fdiv::before, .se-fdiv::after { content: ""; flex: 1; border-top: 2px solid var(--se-line); }

/* Badges */
.se-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.se-badges li { padding: 6px 14px; background: var(--se-soft); color: var(--se-accent); border: 1px solid var(--se-line); font-weight: 700; font-size: .9em; }
.se-badges--pill li { border-radius: 999px; }
.se-badges--soft li { border-radius: 8px; }
.se-badges a { color: inherit; text-decoration: none; }

/* Breadcrumbs */
.se-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .93em; }
.se-crumbs a { font-weight: 700; text-decoration: none; }
.se-crumbs a:hover { text-decoration: underline; }
.se-crumbs__sep { opacity: .5; }

/* Table of contents */
.se-toc { padding: 20px 24px; background: var(--se-soft); border: 1px solid var(--se-line); border-radius: 12px; }
.se-toc__title { display: block; margin-bottom: 10px; font-size: 1.1em; }
.se-toc ol { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.se-toc li.is-sub { margin-inline-start: 1.2em; list-style: circle; font-size: .95em; }
.se-toc a { text-decoration: none; }
.se-toc a:hover { text-decoration: underline; }
.se-toc:empty, .se-toc.is-empty { display: none; }

/* Search */
.se-search { display: flex; gap: 8px; margin: 0; }
.se-search input { flex: 1; min-width: 0; font: inherit; padding: 12px 16px; min-height: 48px; border: 1.5px solid #c3d3de; border-radius: 999px; background: #fff; color: #1c2b3a; }
.se-search input:focus { outline: none; border-color: var(--se-accent-2); box-shadow: 0 0 0 4px rgba(46, 156, 202, .2); }
.se-search .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 767px) {
	.se-chat--float .se-chat__label { display: none; }
	.se-chat--float { padding: 14px; }
	.admin-bar .se-readbar { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	.se-marquee__track { animation: none; }
	.se-marquee { flex-wrap: wrap; }
	.se-marquee__track[aria-hidden="true"] { display: none; }
	.se-flip__inner, .se-hcard__img, .se-hcard__cap, .se-circle__bar { transition: none; }
	.se-typing__word.is-typing { animation: none; }
}
