.tlpm-wrap {
    font-family: var(--tlpm-font, var(--e-global-typography-text-font-family), var(--e-global-typography-primary-font-family), inherit, Tahoma, Arial, sans-serif);
    /*max-width: 900px;*/
    margin: 20px auto;
    direction: rtl
}

.tlpm-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 32px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05)
}

.tlpm-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.tlpm-wrap input,
.tlpm-wrap textarea,
.tlpm-wrap select {
    width: auto;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    box-sizing: border-box
}

.tlpm-btn {
    background: var(--tlpm-button, #3B2BDE);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 12px 18px;
    cursor: pointer
}

.tlpm-dates,
.tlpm-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.tlpm-date,
.tlpm-slot {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer
}

.tlpm-date.active,
.tlpm-slot.active {
    background: var(--tlpm-brand, #3B2BDE);
    color: #fff;
    border-color: var(--tlpm-brand, #3B2BDE)
}

#tlpm-message {
    margin-top: 12px
}

.tlpm-message-success {
    color: #166534
}

.tlpm-message-error {
    color: #b91c1c
}

.tlpm-info {
    margin-bottom: 10px
}

@media(max-width:700px) {
    .tlpm-grid-2 {
        grid-template-columns: 1fr
    }
}

.tlpm-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8dee7;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    margin: 10px 0 16px
}

.tlpm-slots-wrap label {
    display: block;
    margin-top: 8px;
    margin-bottom: 6px;
    font-weight: 600
}


.tlpm-wrap input[type="text"],
.tlpm-wrap input[type="tel"] {
    font-size: 16px;
    text-align: right
}

.tlpm-wrap input#tlpm-mobile,
.tlpm-wrap input#tlpm-otp-code {
    text-align: left;
    direction: ltr
}

.tlpm-toast-stack {
    position: fixed;
    top: 14px;
    left: 14px;
    right: auto;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px
}

.tlpm-toast {
    opacity: 0;
    transform: translateX(-12px);
    transition: .25s ease;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center
}

.tlpm-toast.is-visible {
    opacity: 1;
    transform: none
}

.tlpm-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700
}

.tlpm-toast-body {
    font-size: 14px;
    line-height: 1.8;
    color: #334155
}

.tlpm-toast-close {
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 0 4px
}

.tlpm-toast-success {
    background: #ecfdf5;
    border-color: #22c55e
}

.tlpm-toast-success .tlpm-toast-icon {
    background: #dcfce7;
    color: #16a34a
}

.tlpm-toast-error {
    background: #fef2f2;
    border-color: #ef4444
}

.tlpm-toast-error .tlpm-toast-icon {
    background: #fee2e2;
    color: #dc2626
}

.tlpm-toast-info {
    background: #eff6ff;
    border-color: #3b82f6
}

.tlpm-toast-info .tlpm-toast-icon {
    background: #dbeafe;
    color: #2563eb
}

.tlpm-toast-warning {
    background: #fffbeb;
    border-color: #f59e0b
}

.tlpm-toast-warning .tlpm-toast-icon {
    background: #fef3c7;
    color: #d97706
}

@media (max-width:768px) {
    .tlpm-toast-stack {
        left: 12px;
        right: 12px;
        max-width: none;
        top: 12px
    }

    .tlpm-toast {
        grid-template-columns: auto 1fr auto
    }
}


.tlpm-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
}

.tlpm-birth-picker label,
.tlpm-step-slot label {
    display: block;
    margin: 6px 0 8px;
    font-weight: 600
}

.tlpm-join-btn {
    display: inline-block;
    text-decoration: none;
    padding: 10px 16px;
    margin-top: 6px
}

.tlpm-wrap .tlpm-card .shop_table,
.tlpm-wrap .tlpm-card .woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse
}

.tlpm-wrap .tlpm-card .woocommerce {
    max-width: 100%
}

.tlpm-wrap .tlpm-card #payment {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    margin-top: 18px
}

.tlpm-wrap .tlpm-card #payment ul.payment_methods {
    padding: 0;
    margin: 0 0 16px;
    list-style: none
}

.tlpm-wrap .tlpm-card #payment ul.payment_methods li {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px
}

.tlpm-wrap .tlpm-card #place_order,
.tlpm-wrap .tlpm-card button[name='woocommerce_pay'] {
    background: var(--tlpm-button, #3B2BDE) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 12px !important;
    padding: 12px 22px !important;
    min-width: 180px;
    height: auto !important;
    line-height: 1.5 !important;
    font-size: 16px !important;
    display: inline-block !important;
    float: none !important
}

.tlpm-wrap .tlpm-card .woocommerce-notices-wrapper {
    margin-bottom: 14px
}

@media(max-width:700px) {
    .tlpm-grid-3 {
        grid-template-columns: 1fr
    }
}

.tlpm-mobile-input {
    height: 56px;
    max-height: 56px
}

.tlpm-otp-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px
}

.tlpm-btn-muted {
    background: #eef2ff;
    color: #312e81
}

.tlpm-otp-box input {
    margin-top: 12px
}

.tlpm-wrap .tlpm-card #payment .place-order {
    padding-top: 16px
}

.tlpm-wrap .tlpm-card #payment .payment_methods input[type='radio'] {
    display: inline-block !important
}

.tlpm-wrap .tlpm-card #place_order:before,
.tlpm-wrap .tlpm-card button[name='woocommerce_pay']:before {
    content: none !important
}

.tlpm-wrap .tlpm-card #place_order:after,
.tlpm-wrap .tlpm-card button[name='woocommerce_pay']:after {
    content: 'پرداخت';
    color: #fff;
    display: inline-block
}

.tlpm-wrap .tlpm-card .woocommerce-notices-wrapper .woocommerce-error {
    direction: ltr;
    text-align: left
}

.tlpm-field {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.tlpm-field label {
    font-weight: 600;
    color: #111827
}

.tlpm-step-auth .tlpm-birth-picker {
    grid-column: 1 / -1
}

.tlpm-step-auth .tlpm-birth-picker .tlpm-grid-3 {
    margin-top: 0
}

.tlpm-step-auth .tlpm-birth-picker .tlpm-select {
    margin: 0
}

.tlpm-field-mobile input {
    max-width: 100%
}

.tlpm-required {
    border-color: #ef4444 !important
}

.tlpm-otp-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px
}

#tlpm-resend-otp {
    min-width: 170px
}

.tlpm-wrap,
.tlpm-wrap * {
    font-family: var(--tlpm-font, var(--e-global-typography-text-font-family), var(--e-global-typography-primary-font-family), inherit, Tahoma, Arial, sans-serif)
}

.tlpm-field label {
    margin-bottom: 10px
}

.tlpm-inline-mobile-birth {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(320px, .95fr);
    gap: 18px;
    align-items: end
}

.tlpm-inline-mobile-birth .tlpm-birth-picker {
    grid-column: auto
}

.tlpm-inline-mobile-birth .tlpm-field-mobile {
    margin-bottom: 0
}

.tlpm-grid-3-compact {
    grid-template-columns: 1.15fr 1fr .75fr;
    gap: 10px
}

.tlpm-grid-3-compact .tlpm-select {
    padding: 10px 12px;
    min-height: 46px;
    height: 46px;
    font-size: 15px;
    margin: 0
}

.tlpm-field-mobile .tlpm-mobile-input {
    min-height: 52px;
    height: 52px;
    width: 100%
}

.tlpm-auth-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px
}

.tlpm-otp-box {
    margin-top: 10px
}

.tlpm-join-btn {
    background: var(--tlpm-button, #3B2BDE) !important;
    color: #fff !important;
    border-radius: 12px
}

.tlpm-pay-card .shop_table td,
.tlpm-pay-card .shop_table th {
    text-align: right;
    padding: 14px;
    border: 1px solid #e5e7eb
}

.tlpm-pay-form {
    margin-top: 18px
}

.tlpm-pay-methods {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    max-width: 50%;
}

.tlpm-pay-method {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

.tlpm-pay-desc {
    font-size: 13px;
    color: #6b7280;
    padding: 0 14px 8px
}

.tlpm-pay-submit {
    min-width: 180px
}

@media(max-width:700px) {
    .tlpm-inline-mobile-birth {
        grid-template-columns: 1fr
    }

    .tlpm-grid-3-compact {
        grid-template-columns: 1fr 1fr 1fr
    }
}


/* 0.1.10 layout + font fixes */
.tlpm-auth-grid {
    align-items: start
}

.tlpm-auth-grid .tlpm-field {
    min-width: 0
}

.tlpm-auth-grid .tlpm-field-mobile {
    grid-column: 1
}

.tlpm-auth-grid .tlpm-field-birth {
    grid-column: 2
}

.tlpm-auth-grid .tlpm-field-birth .tlpm-grid-3-compact {
    margin-top: 0
}

.tlpm-auth-grid .tlpm-field-birth .tlpm-select {
    margin: 0
}

.tlpm-auth-grid .tlpm-field-mobile .tlpm-mobile-input {
    margin-top: 0
}

.tlpm-auth-grid .tlpm-field label {
    margin-bottom: 12px
}

.tlpm-auth-grid .tlpm-field-birth label {
    margin-bottom: 14px
}

.tlpm-auth-grid .tlpm-field-mobile,
.tlpm-auth-grid .tlpm-field-birth {
    align-self: start
}

@media(max-width:700px) {

    .tlpm-auth-grid .tlpm-field-mobile,
    .tlpm-auth-grid .tlpm-field-birth {
        grid-column: auto
    }
}

.tlpm-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700
}

.tlpm-status-green {
    background: #dcfce7;
    color: #166534
}

.tlpm-status-yellow {
    background: #fef3c7;
    color: #92400e
}

.tlpm-status-red {
    background: #fee2e2;
    color: #991b1b
}

/* 0.1.18 Elementor font inheritance */
.tlpm-wrap input,
.tlpm-wrap textarea,
.tlpm-wrap select,
.tlpm-wrap button,
.tlpm-wrap .tlpm-btn,
.tlpm-toast {
    font-family: var(--tlpm-font, var(--e-global-typography-text-font-family), var(--e-global-typography-primary-font-family), inherit, Tahoma, Arial, sans-serif) !important
}

/* 0.1.19 configurable colors */
.tlpm-wrap {
    color: var(--tlpm-text, #111827)
}

.tlpm-wrap h1,
.tlpm-wrap h2,
.tlpm-wrap h3,
.tlpm-wrap h4,
.tlpm-wrap label,
.tlpm-wrap strong {
    color: var(--tlpm-text, #111827)
}

.tlpm-wrap a {
    color: var(--tlpm-brand, #3B2BDE)
}

.tlpm-wrap a:hover {
    color: var(--tlpm-hover, #9b1979)
}

.tlpm-wrap input,
.tlpm-wrap textarea,
.tlpm-wrap select {
    color: var(--tlpm-text, #111827);
    border-color: #d9e0ea
}

.tlpm-wrap input:focus,
.tlpm-wrap textarea:focus,
.tlpm-wrap select:focus {
    border-color: var(--tlpm-brand, #3B2BDE);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tlpm-brand, #3B2BDE) 15%, transparent);
    outline: 0
}

.tlpm-btn,
.tlpm-wrap .tlpm-card #place_order,
.tlpm-wrap .tlpm-card button[name='woocommerce_pay'],
.tlpm-join-btn,
.tlpm-pay-submit {
    background: var(--tlpm-button, #3B2BDE) !important;
    color: #fff !important;
    border-color: var(--tlpm-button, #3B2BDE) !important;
    transition: .2s ease
}

.tlpm-btn:hover,
.tlpm-wrap .tlpm-card #place_order:hover,
.tlpm-wrap .tlpm-card button[name='woocommerce_pay']:hover,
.tlpm-join-btn:hover,
.tlpm-pay-submit:hover {
    background: var(--tlpm-hover, #9b1979) !important;
    border-color: var(--tlpm-hover, #9b1979) !important;
    color: #fff !important;
    transform: translateY(-1px)
}

.tlpm-date:hover,
.tlpm-slot:hover {
    border-color: var(--tlpm-hover, #9b1979);
    color: var(--tlpm-hover, #9b1979)
}

.tlpm-date.active,
.tlpm-slot.active {
    background: var(--tlpm-brand, #3B2BDE) !important;
    color: #fff !important;
    border-color: var(--tlpm-brand, #3B2BDE) !important
}

.tlpm-info,
.tlpm-pay-desc {
    color: var(--tlpm-secondary, #6b7280)
}

.tlpm-card {
    color: var(--tlpm-text, #111827)
}

/* 0.1.39 Booking edit window */
.tlpm-notice {
    padding: 12px 14px;
    border-radius: 14px;
    margin: 0 0 16px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e3a8a;
    line-height: 1.9
}

.tlpm-notice-warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412
}

.tlpm-edit-booking-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px
}

.tlpm-help {
    display: block;
    color: #6b7280;
    line-height: 1.8
}

.tlpm-btn-disabled,
.tlpm-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    filter: grayscale(.2)
}


/* 0.1.40 Locked booking edit UX */
.tlpm-booking-edit-locked .tlpm-select,
.tlpm-booking-edit-locked #tlpm-confirm-slot {
    opacity: .65;
    cursor: not-allowed;
}

.tlpm-locked-panel {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #f59e0b33;
    background: #fffbeb;
    color: #92400e;
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 1.9;
}

.tlpm-locked-panel strong {
    font-weight: 800;
}

.tlpm-locked-panel span {
    font-size: 13px;
}

.tlpm-wrap,
.tlpm-wrap *,
.tlpm-wrap input,
.tlpm-wrap select,
.tlpm-wrap textarea,
.tlpm-wrap button,
.tlpm-wrap label,
.tlpm-wrap table,
.tlpm-wrap td,
.tlpm-wrap th,
.tlpm-wrap span,
.tlpm-wrap div,
.tlpm-wrap p,
.tlpm-wrap a {
    font-family: "Rokh", Tahoma, Arial, sans-serif !important;
}

.tlpm-wrap .shop_table {
    border-collapse: separate !important;
    border-spacing: 0;
}

.tlpm-wrap .shop_table tr:first-child td:first-child {
    border-top-right-radius: 16px;
}

.tlpm-wrap .shop_table tr:first-child td:last-child {
    border-top-left-radius: 16px;
}

.tlpm-wrap .shop_table tr:last-child td:first-child {
    border-bottom-right-radius: 16px;
}

.tlpm-wrap .shop_table tr:last-child td:last-child {
    border-bottom-left-radius: 16px;
}

.tlpm-info-flexbox {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-content: center;
    align-items: center;
}


.tlpm-datecard-flexbox{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

#tlpm-first-name , #tlpm-last-name{
    width: 100%;
}

.tipm-dashboard-card-flexbox{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    gap: 32px;
}
        
    