.service-discovery{margin:18px auto;max-width:1200px;padding-inline:16px}
.service-discovery-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-size:14px}
.service-discovery-head a{color:var(--ds-green,#15643c);font-size:12px}
.service-category-strip{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:4px 0 12px;scrollbar-width:thin}
.service-category-chip{flex:none;display:flex;align-items:center;gap:7px;padding:10px 14px;min-height:44px;border:1px solid var(--ds-line,#dce5dd);border-radius:16px;background:var(--ds-surface,#fffdf7);color:var(--ds-ink,#183b2c);text-decoration:none;white-space:nowrap;scroll-snap-align:start;font-size:13px}
.service-category-chip svg{width:20px;height:20px;flex:none}
.service-category-chip.is-active{border-color:#278751;background:#e5f4e8;color:#146439}
.service-categories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-block:20px}
.service-category-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:132px;padding:14px 6px;border-radius:22px;border:1px solid var(--ds-line,#dce5dd);background:var(--ds-surface,#fffdf7);color:var(--ds-ink,#173b2a);text-decoration:none;text-align:center;font-size:14px}
html#baladyPlatformRoot body#baladyPlatformBody .service-category-tile svg{box-sizing:border-box!important;width:58px!important;height:58px!important;max-width:none!important;padding:14px!important;flex:none;border-radius:19px;background:#e6f3e9;color:#207448}
.merchant-services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-block:18px}
.merchant-service-card{border:1px solid var(--ds-line,#dce5dd);border-radius:22px;overflow:hidden;background:var(--ds-surface,#fffdf7);box-shadow:0 5px 20px #133e2608;min-width:0}
.merchant-service-card>img,.service-image-placeholder{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;background:#e6efe5}
.service-image-placeholder{display:grid;place-items:center;color:#277347}.service-image-placeholder svg{width:54px;height:54px}
.service-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.merchant-service-dialog{width:min(520px,calc(100% - 24px));max-height:88dvh;overflow:auto;box-sizing:border-box;border:1px solid var(--ds-line,#dce5dd);border-radius:24px;padding:22px;background:var(--ds-surface,#fffdf7);color:var(--ds-ink,#173b2a);direction:rtl}
.merchant-service-dialog::backdrop{background:#00170ca6}.merchant-service-dialog .field-stack{display:grid;gap:6px;text-align:start}.merchant-service-dialog .field{width:100%;box-sizing:border-box;min-height:48px;border-radius:12px;padding:12px;border:1px solid var(--ds-line,#dce5dd);background:var(--ds-bg,#f4f7f2);color:inherit}.merchant-service-dialog form{display:grid;gap:14px}.merchant-service-dialog .field-stack>span{font-size:13px;font-weight:600}.merchant-service-dialog .section-head{margin-bottom:8px}
#merchantServicesView [hidden]{display:none!important}
[data-theme="night"] :is(.service-category-chip,.service-category-tile,.merchant-service-card,.merchant-service-dialog){background:#0d241c;color:#e3f0e5;border-color:#31523e}
[data-theme="night"] .service-category-chip.is-active{background:#185136;color:#d2fbdc}
html#baladyPlatformRoot#baladyPlatformRoot[data-theme="night"] body#baladyPlatformBody#baladyPlatformBody :is(#merchantServicesView,.merchant-service-dialog) .btn-light{background:#173a29!important;color:#dbf8e2!important;border:1px solid #376247!important}
@media(max-width:700px){.service-categories-grid{gap:9px}.service-category-tile{font-size:13px}.merchant-service-dialog{padding:16px}}

[data-theme="night"] .service-category-tile svg{background:#1c3d2c;color:#8be0a4}

/* Service gallery: one image-led entry; all information stays in its details sheet. */
.merchant-service-preview{position:relative;display:block;isolation:isolate;width:100%;aspect-ratio:8/5;padding:0;border:0;border-radius:20px;overflow:hidden;background:#10382a;cursor:pointer;text-align:start;color:#fff}
.merchant-service-preview>img,.merchant-service-preview>.service-image-placeholder{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:auto;margin:0;transform:none}
.merchant-service-preview>.service-image-placeholder{display:grid;place-items:center;background:linear-gradient(145deg,#1e674c,#092a20);color:#b4e6c4}
.merchant-service-preview::after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,transparent 35%,#00150edb)}
.merchant-service-caption{position:absolute;inset-inline:18px;bottom:18px;z-index:2;display:grid;gap:5px}.merchant-service-caption strong{font-size:19px;line-height:1.6;overflow-wrap:anywhere}.merchant-service-caption small{font-size:12px;line-height:1.6}
html#baladyPlatformRoot#baladyPlatformRoot body#baladyPlatformBody#baladyPlatformBody .merchant-service-caption :is(strong,small){color:#fff!important}
.merchant-service-card>.service-card-actions{padding:12px;margin:0;gap:10px}.merchant-service-card>.service-card-actions>span{margin-inline-end:auto;font-size:12px}
#merchantServiceDetails{padding:0;max-height:calc(100dvh - 24px);overflow:auto;border-radius:24px}.service-details-head{display:flex;align-items:start;justify-content:space-between;gap:12px;position:sticky;top:0;background:var(--ds-surface,#fffdf7);padding:18px;border-bottom:1px solid var(--ds-line,#dce5dd)}.service-details-head h2{margin:0;font-size:20px;line-height:1.5}.service-details-close{flex:none;width:40px;height:40px;padding:0;border:1px solid var(--ds-line,#dce5dd);border-radius:12px;background:var(--ds-bg,#f1f5ef);color:inherit;font-size:25px;cursor:pointer}.service-details-content{padding:18px;display:grid;gap:16px}.service-details-content h3{margin:0;font-size:15px}.service-details-facts{margin:0;display:grid;gap:0}.service-details-facts>div{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--ds-line,#dce5dd);font-size:13px}.service-details-facts dd{margin:0}.service-details-description p{margin:0;padding:9px 0;line-height:1.9;font-size:14px;overflow-wrap:anywhere}.service-details-content .service-card-actions{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.service-details-content .btn{min-height:46px}
@media(max-width:700px){.merchant-services-grid{grid-template-columns:minmax(0,1fr);gap:18px}.merchant-service-preview{aspect-ratio:8/5}.merchant-service-caption{inset-inline:16px;bottom:16px}}

/* Supplied category artwork retains its original transparency and proportions. */
.service-category-art{display:grid;place-items:center;flex:none;width:84px;height:84px;overflow:hidden;border-radius:16px}.service-category-art img{display:block!important;position:static!important;inset:auto!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;transform:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}.service-category-chip .service-category-art{width:34px;height:34px;border-radius:8px}.service-category-tile .service-category-art{width:84px;height:84px}.service-category-image-fallback[hidden]{display:none!important}
