:root {
--wctnlp-blue: #3867e8;
--wctnlp-trigger-bg: transparent;
--wctnlp-trigger-text: #ffffff;
--wctnlp-font-family: "El Messiri", Tahoma, Arial, sans-serif;
--wctnlp-text: #111827;
--wctnlp-muted: #6b7280;
--wctnlp-border: #e5e7eb;
--wctnlp-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}
.wctnlp-menu-item {
display: flex;
align-items: center;
cursor: pointer;
}
.wctnlp-trigger {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-width: 145px;
height: 30px;
min-height: 0;
padding: 0 8px;
border: 0;
border-radius: 0;
color: var(--wctnlp-trigger-text) !important;
background: var(--wctnlp-trigger-bg) !important;
box-shadow: none;
font-family: var(--wctnlp-font-family);
font-size: 13px;
font-weight: 700;
line-height: 1;
direction: ltr;
cursor: pointer;
text-transform: none;
white-space: nowrap;
appearance: none;
}
.wctnlp-menu-item > .wctnlp-trigger {
width: 100%;
height: 100%;
}
.wctnlp-trigger > * {
pointer-events: none;
}
.wctnlp-trigger:hover,
.wctnlp-trigger:focus {
color: var(--wctnlp-trigger-text) !important;
background: var(--wctnlp-trigger-bg) !important;
box-shadow: none;
}
.wctnlp-trigger:focus-visible,
.wctnlp-icon-button:focus-visible,
.wctnlp-primary:focus-visible,
.wctnlp-secondary:focus-visible,
.wctnlp-search input:focus-visible {
outline: 3px solid rgba(56, 103, 232, 0.35);
outline-offset: 2px;
}
.wctnlp-pin-icon,
.wctnlp-chevron,
.wctnlp-trigger svg {
width: 18px;
height: 18px;
flex: 0 0 18px;
}
.wctnlp-trigger-label {
display: inline-block;
min-width: 0;
max-width: 92px;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 700;
}
.wctnlp-trigger-suffix:empty {
display: none;
}
.wctnlp-overlay {
position: fixed;
inset: 0;
z-index: 999999;
display: none;
align-items: center;
justify-content: center;
padding: 24px;
background: rgba(17, 24, 39, 0.38);
}
.wctnlp-overlay,
.wctnlp-overlay *,
.wctnlp-overlay *::before,
.wctnlp-overlay *::after {
box-sizing: border-box;
}
.wctnlp-overlay.is-open {
display: flex;
}
.wctnlp-modal {
position: relative;
display: grid;
grid-template-rows: 66px minmax(0, 1fr) auto;
width: min(900px, 100%);
height: min(680px, calc(100vh - 48px));
height: min(680px, calc(100dvh - 48px));
overflow: hidden;
border-radius: 14px;
background: #fff;
box-shadow: var(--wctnlp-shadow);
}
.wctnlp-header {
display: flex;
align-items: center;
justify-content: space-between;
height: 66px;
padding: 0 18px;
border-bottom: 1px solid var(--wctnlp-border);
direction: ltr;
}
.wctnlp-title {
margin: 0;
color: #374151;
font-family: var(--wctnlp-font-family);
font-size: 22px;
font-weight: 700;
line-height: 1.2;
direction: rtl;
}
.wctnlp-title-arrow {
margin-inline-start: 8px;
font-size: 26px;
vertical-align: -1px;
}
.wctnlp-icon-button {
display: inline-grid;
place-items: center;
width: 36px;
height: 36px;
padding: 0;
border: 0;
border-radius: 50%;
color: #111827;
background: #f3f4f6;
cursor: pointer;
}
.wctnlp-icon-button svg {
width: 21px;
height: 21px;
}
.wctnlp-map-wrap {
position: relative;
min-height: 0;
background: #dbeafe;
}
.wctnlp-map {
width: 100%;
height: 100%;
}
.wctnlp-map-loading {
position: absolute;
inset: 0;
z-index: 900;
display: none;
place-items: center;
color: #374151;
background: #eef2f7;
font-family: var(--wctnlp-font-family);
font-size: 14px;
font-weight: 700;
}
.wctnlp-map-loading.is-visible {
display: grid;
}
.wctnlp-gps-pulse {
position: absolute;
z-index: 999;
width: 44px;
height: 44px;
pointer-events: none;
transform: translate(-50%, -50%);
}
.wctnlp-gps-pulse-ring,
.wctnlp-gps-pulse-dot {
position: absolute;
top: 50%;
left: 50%;
border-radius: 999px;
transform: translate(-50%, -50%);
}
.wctnlp-gps-pulse-ring {
width: 18px;
height: 18px;
background: rgba(56, 103, 232, 0.24);
animation: wctnlpGpsPulse 1.8s ease-out infinite;
}
.wctnlp-gps-pulse-ring-delay {
animation-delay: 0.9s;
}
.wctnlp-gps-pulse-dot {
width: 16px;
height: 16px;
border: 2px solid #fff;
background: #3867e8;
box-shadow: 0 2px 8px rgba(56, 103, 232, 0.35);
}
@keyframes wctnlpGpsPulse {
0% {
opacity: 0.55;
transform: translate(-50%, -50%) scale(0.85);
}
70%,
100% {
opacity: 0;
transform: translate(-50%, -50%) scale(2.6);
}
}
@media (prefers-reduced-motion: reduce) {
.wctnlp-gps-pulse-ring {
opacity: 0.22;
animation: none;
transform: translate(-50%, -50%) scale(1.8);
}
}
.wctnlp-controls {
position: absolute;
z-index: 1000;
top: 14px;
left: 18px;
right: 18px;
display: grid;
grid-template-columns: minmax(180px, 270px) minmax(220px, 1fr);
gap: 10px;
direction: ltr;
pointer-events: none;
}
.wctnlp-controls > * {
pointer-events: auto;
}
.wctnlp-secondary,
.wctnlp-search {
min-height: 48px;
border: 1px solid #edf0f4;
border-radius: 12px;
background: #fff;
box-shadow: 0 8px 26px rgba(31, 41, 55, 0.08);
}
.wctnlp-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 0 12px;
color: var(--wctnlp-blue);
font-family: var(--wctnlp-font-family);
font-size: 14px;
font-weight: 700;
line-height: 1;
direction: rtl;
cursor: pointer;
}
.wctnlp-secondary svg,
.wctnlp-search svg {
width: 21px;
height: 21px;
flex: 0 0 21px;
}
.wctnlp-search {
display: flex;
align-items: center;
padding: 0 14px;
color: #6b7280;
direction: rtl;
}
.wctnlp-search input {
width: 100%;
height: 46px;
min-width: 0;
border: 0;
color: #1f2937;
background: transparent;
font-family: var(--wctnlp-font-family);
font-size: 14px;
font-weight: 700;
line-height: 1;
}
.wctnlp-search input::placeholder {
color: #9ca3af;
}
.wctnlp-search input:focus {
outline: none;
}
.wctnlp-results {
position: absolute;
z-index: 1001;
top: 68px;
right: 18px;
width: min(520px, calc(100% - 36px));
max-height: 230px;
overflow: auto;
border: 1px solid var(--wctnlp-border);
border-radius: 12px;
background: #fff;
box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
}
.wctnlp-results:empty {
display: none;
}
.wctnlp-status {
position: absolute;
z-index: 1002;
right: 18px;
bottom: 14px;
display: none;
max-width: min(520px, calc(100% - 36px));
padding: 9px 12px;
border: 1px solid #fecaca;
border-radius: 8px;
color: #991b1b;
background: #fff1f2;
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
font-family: var(--wctnlp-font-family);
font-size: 12px;
font-weight: 700;
line-height: 1.5;
text-align: right;
direction: rtl;
}
.wctnlp-status.is-visible {
display: block;
}
.wctnlp-result {
display: block;
width: 100%;
padding: 12px 14px;
border: 0;
border-bottom: 1px solid #f3f4f6;
color: #1f2937;
background: #fff;
font-family: var(--wctnlp-font-family);
font-size: 13px;
font-weight: 700;
line-height: 1.6;
text-align: right;
cursor: pointer;
}
.wctnlp-result:hover {
background: #f9fafb;
}
.wctnlp-center-label {
position: absolute;
z-index: 1000;
top: 50%;
left: 50%;
transform: translate(-50%, -154%);
padding: 6px 10px;
border-radius: 4px;
color: #fff;
background: rgba(17, 24, 39, 0.88);
font-family: var(--wctnlp-font-family);
font-size: 13px;
font-weight: 700;
line-height: 1;
pointer-events: none;
}
.wctnlp-center-label::after {
content: "";
position: absolute;
bottom: -6px;
left: 50%;
width: 0;
height: 0;
transform: translateX(-50%);
border-top: 6px solid rgba(17, 24, 39, 0.88);
border-right: 6px solid transparent;
border-left: 6px solid transparent;
}
.wctnlp-center-pin {
position: absolute;
z-index: 1000;
top: 50%;
left: 50%;
width: 28px;
height: 42px;
color: #111827;
filter: drop-shadow(0 8px 10px rgba(15, 23, 42, 0.22));
pointer-events: none;
transform: translate(-50%, -100%);
}
.wctnlp-center-pin svg {
display: block;
width: 100%;
height: 100%;
}
.wctnlp-center-pin::after {
content: "";
position: absolute;
left: 50%;
bottom: -5px;
width: 12px;
height: 5px;
border-radius: 999px;
background: rgba(15, 23, 42, 0.18);
transform: translateX(-50%);
}
.wctnlp-footer {
display: grid;
grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
grid-template-areas: "button address";
align-items: center;
gap: 18px;
min-height: 66px;
padding: 10px 18px;
border-top: 1px solid var(--wctnlp-border);
background: #fff;
direction: ltr;
}
.wctnlp-footer > * {
min-width: 0;
}
.wctnlp-primary {
grid-area: button;
width: 100%;
max-width: 240px;
height: 48px;
border: 0;
border-radius: 7px;
color: #fff;
background: var(--wctnlp-blue);
font-family: var(--wctnlp-font-family);
font-size: 15px;
font-weight: 700;
line-height: 1;
direction: rtl;
cursor: pointer;
}
.wctnlp-address {
grid-area: address;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 12px;
min-width: 0;
max-width: 100%;
overflow: hidden;
color: #4b5563;
text-align: right;
direction: rtl;
}
.wctnlp-address > span {
order: 1;
display: block;
min-width: 0;
max-width: 100%;
overflow: hidden;
}
.wctnlp-address svg {
order: 0;
width: 28px;
height: 28px;
flex: 0 0 28px;
color: #111827;
}
.wctnlp-address-title {
display: block;
color: var(--wctnlp-blue);
font-family: var(--wctnlp-font-family);
font-size: 13px;
font-weight: 700;
line-height: 1.4;
}
.wctnlp-address-text {
display: block;
max-width: 520px;
overflow: hidden;
color: #6b7280;
font-family: var(--wctnlp-font-family);
font-size: 13px;
font-weight: 700;
line-height: 1.6;
text-overflow: ellipsis;
white-space: nowrap;
}
.wctnlp-loading {
opacity: 0.72;
}
body.wctnlp-modal-open {
overflow: hidden;
}
@media (max-width: 720px) {
.wctnlp-trigger {
gap: 5px;
min-width: 126px;
height: 28px;
padding: 0 6px;
font-size: 12px;
}
.wctnlp-pin-icon,
.wctnlp-chevron,
.wctnlp-trigger svg {
width: 16px;
height: 16px;
flex-basis: 16px;
}
.wctnlp-trigger-label {
max-width: 82px;
}
.wctnlp-overlay {
align-items: center;
padding: 8px;
}
.wctnlp-modal {
grid-template-rows: 46px minmax(0, 1fr) auto;
width: calc(100vw - 16px);
height: min(560px, calc(100vh - 16px));
height: min(560px, calc(100dvh - 16px));
max-height: calc(100vh - 16px);
max-height: calc(100dvh - 16px);
border-radius: 10px;
}
.wctnlp-header {
height: 46px;
padding: 0 12px;
}
.wctnlp-icon-button {
width: 30px;
height: 30px;
}
.wctnlp-icon-button svg {
width: 18px;
height: 18px;
}
.wctnlp-title {
font-size: 15px;
}
.wctnlp-title-arrow {
font-size: 20px;
}
.wctnlp-map-wrap {
min-height: 0;
}
.wctnlp-center-pin {
width: 24px;
height: 36px;
}
.wctnlp-controls {
grid-template-columns: 1fr;
top: 8px;
right: 10px;
left: 10px;
gap: 7px;
}
.wctnlp-secondary,
.wctnlp-search {
min-height: 36px;
border-radius: 9px;
}
.wctnlp-secondary {
font-size: 12px;
padding: 0 10px;
}
.wctnlp-secondary svg,
.wctnlp-search svg {
width: 17px;
height: 17px;
flex-basis: 17px;
}
.wctnlp-search {
padding: 0 10px;
}
.wctnlp-search input {
height: 34px;
font-size: 12px;
}
.wctnlp-results {
top: 84px;
right: 10px;
width: calc(100% - 20px);
max-height: 160px;
}
.wctnlp-status {
right: 10px;
bottom: 8px;
max-width: calc(100% - 20px);
padding: 7px 9px;
font-size: 11px;
}
.wctnlp-footer {
grid-template-columns: 1fr;
grid-template-areas:
"address"
"button";
min-height: 92px;
gap: 12px;
padding: 12px 14px;
}
.wctnlp-primary {
height: 54px;
max-width: none;
border-radius: 14px;
font-size: 20px;
}
.wctnlp-address {
flex-direction: row;
align-items: center;
justify-content: flex-start;
gap: 12px;
min-height: 82px;
padding: 0 8px;
}
.wctnlp-address svg {
width: 54px;
height: 54px;
flex-basis: 54px;
padding: 12px;
border-radius: 14px;
color: #111827;
background: #f3f6fa;
}
.wctnlp-address > span {
text-align: right;
}
.wctnlp-address-title {
display: none;
}
.wctnlp-address-text {
max-width: 100%;
overflow: visible;
color: #8b93a1;
font-size: 18px;
line-height: 1.35;
text-overflow: clip;
white-space: normal;
}
}
@media (max-width: 380px), (max-height: 620px) {
.wctnlp-modal {
grid-template-rows: 42px minmax(0, 1fr) auto;
height: calc(100vh - 10px);
height: calc(100dvh - 10px);
width: calc(100vw - 10px);
}
.wctnlp-overlay {
padding: 5px;
}
.wctnlp-header {
height: 42px;
}
.wctnlp-map-wrap {
min-height: 0;
}
.wctnlp-footer {
min-height: 126px;
}
.wctnlp-primary {
height: 44px;
font-size: 16px;
}
.wctnlp-address-text {
font-size: 14px;
}
.wctnlp-address svg {
width: 44px;
height: 44px;
flex-basis: 44px;
padding: 10px;
}
}