.sa-service-arabic_to_english_number {
    --digit-primary: #0f766e;
    --digit-dark: #134e4a;
    --digit-purple: #6d28d9;
    --digit-soft: #ecfdf5;
}

.sa-service-arabic_to_english_number .sa-tool-card__header,
.sa-service-arabic_to_english_number .sa-tool-aftercare {
    display: none !important;
}

.sa-service-arabic_to_english_number .sa-tool-card {
    padding: 0 !important;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sa-service-arabic_to_english_number .sa-tool-content {
    padding: 0 !important;
}

.sa-digit-app,
.sa-digit-app * {
    box-sizing: border-box;
}

.sa-digit-app {
    display: grid;
    gap: 20px;
    color: #172033;
}

.sa-digit-app button,
.sa-digit-app textarea,
.sa-digit-app select {
    font-family: inherit;
}

.sa-digit-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: center;
    overflow: hidden;
    padding: clamp(25px, 5vw, 46px);
    border-radius: 30px;
    background: radial-gradient(circle at 8% 0, rgba(167, 139, 250, .18), transparent 32%), radial-gradient(circle at 95% 100%, rgba(45, 212, 191, .24), transparent 38%), linear-gradient(145deg, #042f2e, #115e59 60%, #0f766e);
    color: #fff;
    box-shadow: 0 25px 65px rgba(15, 118, 110, .2);
}

.sa-digit-hero::after {
    content: "١23";
    position: absolute;
    inset-inline-end: 24%;
    inset-block-start: -50px;
    color: rgba(255, 255, 255, .045);
    font-size: 210px;
    font-weight: 900;
    white-space: nowrap;
}

.sa-digit-hero > div,
.sa-digit-hero > aside {
    position: relative;
    z-index: 1;
}

.sa-digit-hero > div > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    font-size: 12px;
    font-weight: 800;
}

.sa-digit-hero h2 {
    max-width: 800px;
    margin: 12px 0 8px;
    color: #fff;
    font-size: clamp(27px, 4vw, 43px);
    line-height: 1.4;
}

.sa-digit-hero p {
    max-width: 760px;
    margin: 0;
    color: #ccfbf1;
    font-size: 14px;
    line-height: 2;
}

.sa-digit-hero > div > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.sa-digit-hero > div > div b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .09);
    font-size: 11px;
}

.sa-digit-hero > aside {
    direction: ltr;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 23px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(9px);
    text-align: center;
}

.sa-digit-hero > aside div {
    min-width: 0;
    padding: 12px 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
}

.sa-digit-hero > aside small,
.sa-digit-hero > aside strong {
    display: block;
}

.sa-digit-hero > aside small {
    color: #99f6e4;
    font-size: 10px;
}

.sa-digit-hero > aside strong {
    margin-top: 6px;
    color: #fff;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.sa-digit-hero > aside > i {
    color: #5eead4;
}

.sa-digit-studio,
.sa-digit-examples,
.sa-digit-map,
.sa-digit-related {
    padding: clamp(18px, 3vw, 27px);
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(15, 23, 42, .06);
}

.sa-digit-studio > header,
.sa-digit-examples > header,
.sa-digit-map > header,
.sa-digit-related > header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
}

.sa-digit-studio > header > span,
.sa-digit-examples > header > span,
.sa-digit-map > header > span,
.sa-digit-related > header > span {
    width: 49px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 19px;
}

.sa-digit-studio h3,
.sa-digit-studio p,
.sa-digit-examples h3,
.sa-digit-examples p,
.sa-digit-map h3,
.sa-digit-map p,
.sa-digit-related h3,
.sa-digit-related p {
    margin: 0;
}

.sa-digit-studio > header > div:nth-child(2),
.sa-digit-examples > header > div,
.sa-digit-map > header > div,
.sa-digit-related > header > div {
    min-width: 0;
}

.sa-digit-studio > header p,
.sa-digit-examples > header p,
.sa-digit-map > header p,
.sa-digit-related > header p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.sa-digit-direction {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-inline-start: auto;
}

.sa-digit-direction button {
    direction: ltr;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 5px;
    align-items: center;
    min-width: 155px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
}

.sa-digit-direction button b,
.sa-digit-direction button strong {
    font-size: 12px;
}

.sa-digit-direction button small {
    grid-column: 1 / -1;
    color: inherit;
    font-size: 9px;
}

.sa-digit-direction button.is-active {
    border-color: #2dd4bf;
    background: #ecfdf5;
    color: #0f766e;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .1);
}

.sa-digit-editors {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.sa-digit-editor {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

.sa-digit-editor.is-output {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.sa-digit-editor > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 12px 13px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.sa-digit-editor > header > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sa-digit-editor > header > div > span {
    width: 37px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #f1f5f9;
    color: #64748b;
}

.sa-digit-editor.is-output > header > div > span {
    background: #ccfbf1;
    color: #0f766e;
}

.sa-digit-editor header small,
.sa-digit-editor header h3 {
    display: block;
    margin: 0;
}

.sa-digit-editor header small {
    color: #64748b;
    font-size: 9px;
}

.sa-digit-editor header h3 {
    font-size: 13px;
}

.sa-digit-editor header button,
.sa-digit-editor footer button {
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.sa-digit-editor.is-output header button {
    border-color: #99f6e4;
    color: #0f766e;
}

.sa-digit-editor textarea {
    width: 100%;
    min-height: 230px;
    resize: vertical;
    padding: 15px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #172033 !important;
    font-size: 16px !important;
    line-height: 1.9;
    box-shadow: none !important;
}

.sa-digit-editor.is-output textarea {
    direction: auto;
    color: #134e4a !important;
    font-weight: 700;
}

.sa-digit-editor footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 13px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.sa-digit-editor footer span {
    color: #64748b;
    font-size: 10px;
}

.sa-digit-editor footer b {
    color: #0f766e;
}

.sa-digit-middle {
    display: grid;
    place-content: center;
    gap: 6px;
    color: #0f766e;
    text-align: center;
}

.sa-digit-middle i {
    width: 42px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ccfbf1;
}

.sa-digit-middle span {
    font-size: 8px;
    font-weight: 800;
}

.sa-digit-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 13px;
}

.sa-digit-options > label {
    min-width: 0;
    position: relative;
}

.sa-digit-options > label[hidden] {
    display: none;
}

.sa-digit-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sa-digit-options > label > span,
.sa-digit-options > label[data-digit-style-wrap] {
    height: 100%;
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
    padding: 11px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
    cursor: pointer;
}

.sa-digit-options > label > span > i,
.sa-digit-select-copy > i {
    grid-row: 1 / 3;
    width: 37px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff;
    color: #0f766e;
}

.sa-digit-options b,
.sa-digit-options small {
    display: block;
}

.sa-digit-options b {
    font-size: 11px;
}

.sa-digit-options small {
    color: #64748b;
    font-size: 9px;
    line-height: 1.5;
}

.sa-digit-options input:checked + span {
    border-color: #2dd4bf;
    background: #ecfdf5;
}

.sa-digit-options input:checked + span > i {
    background: #0f766e;
    color: #fff;
}

.sa-digit-options > label[data-digit-style-wrap] {
    grid-template-columns: minmax(0, 1fr) auto;
}

.sa-digit-select-copy {
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
}

.sa-digit-options select {
    min-height: 39px;
    padding: 5px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #134e4a;
    font-size: 12px;
    font-weight: 800;
}

.sa-digit-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 13px;
}

.sa-digit-summary article {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
}

.sa-digit-summary article > i {
    width: 36px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #ccfbf1;
    color: #0f766e;
}

.sa-digit-summary small,
.sa-digit-summary b {
    display: block;
}

.sa-digit-summary small {
    color: #64748b;
    font-size: 9px;
}

.sa-digit-summary b {
    color: #134e4a;
    font-size: 15px;
}

.sa-digit-main-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 13px;
}

.sa-digit-main-actions button {
    min-height: 45px;
    padding: 9px 15px;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    background: #fff;
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.sa-digit-main-actions button:first-child {
    background: linear-gradient(135deg, #0f766e, #115e59);
    color: #fff;
}

.sa-digit-examples > div,
.sa-digit-related > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.sa-digit-examples button,
.sa-digit-related a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 11px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #172033 !important;
    text-align: start;
    text-decoration: none !important;
}

.sa-digit-examples button {
    grid-template-columns: 42px minmax(0, 1fr);
    cursor: pointer;
}

.sa-digit-examples button > i,
.sa-digit-related a > i {
    width: 42px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 17px;
}

.sa-digit-examples b,
.sa-digit-examples small,
.sa-digit-related b,
.sa-digit-related small {
    display: block;
}

.sa-digit-examples b,
.sa-digit-related b {
    font-size: 11px;
}

.sa-digit-examples small,
.sa-digit-related small {
    color: #64748b;
    font-size: 9px;
}

.sa-digit-related em {
    color: #94a3b8;
}

.sa-digit-map > div {
    overflow-x: auto;
}

.sa-digit-map article {
    direction: ltr;
    min-width: 650px;
    display: grid;
    grid-template-columns: 90px repeat(10, 1fr);
    gap: 5px;
    align-items: center;
    padding: 7px;
    border-radius: 12px;
}

.sa-digit-map article:nth-child(odd) {
    background: #f8fafc;
}

.sa-digit-map article small {
    direction: rtl;
    color: #64748b;
    font-size: 11px;
    text-align: start;
}

.sa-digit-map article b {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 1px solid #d1fae5;
    border-radius: 9px;
    background: #fff;
    color: #134e4a;
    font-size: 16px;
}

.sa-digit-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sa-digit-notes article {
    padding: 18px;
    border: 1px solid #ccfbf1;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f0fdfa);
}

.sa-digit-notes i {
    width: 45px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #0f766e;
    color: #fff;
    font-size: 18px;
}

.sa-digit-notes h3 {
    margin: 10px 0 4px;
    font-size: 14px;
}

.sa-digit-notes p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.85;
}

@media (max-width: 980px) {
    .sa-digit-editors {
        grid-template-columns: 1fr;
    }

    .sa-digit-middle {
        grid-template-columns: auto auto;
        align-items: center;
    }

    .sa-digit-middle i {
        transform: rotate(-90deg);
    }

    .sa-digit-options {
        grid-template-columns: 1fr 1fr;
    }

    .sa-digit-options > label:last-child {
        grid-column: 1 / -1;
    }

    .sa-digit-summary,
    .sa-digit-examples > div,
    .sa-digit-related > div {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .sa-digit-hero {
        grid-template-columns: 1fr;
    }

    .sa-digit-hero > aside {
        display: none;
    }

    .sa-digit-studio > header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .sa-digit-direction {
        width: 100%;
        margin-inline-start: 60px;
    }

    .sa-digit-direction button {
        min-width: 0;
    }

    .sa-digit-notes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 590px) {
    .sa-digit-hero {
        padding: 24px 18px;
        border-radius: 23px;
    }

    .sa-digit-hero h2 {
        font-size: 27px;
    }

    .sa-digit-direction,
    .sa-digit-options,
    .sa-digit-summary,
    .sa-digit-main-actions,
    .sa-digit-examples > div,
    .sa-digit-related > div {
        grid-template-columns: 1fr;
    }

    .sa-digit-direction {
        margin-inline-start: 0;
    }

    .sa-digit-options > label:last-child {
        grid-column: auto;
    }

    .sa-digit-editor > header,
    .sa-digit-editor footer {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .sa-digit-examples > header,
    .sa-digit-map > header,
    .sa-digit-related > header {
        align-items: flex-start;
    }
}

@media print {
    .sa-digit-hero,
    .sa-digit-options,
    .sa-digit-summary,
    .sa-digit-main-actions,
    .sa-digit-examples,
    .sa-digit-map,
    .sa-digit-notes,
    .sa-digit-related,
    .sa-workflow,
    .sa-commandbar,
    .sa-digit-editor.is-input,
    .sa-digit-middle {
        display: none !important;
    }

    .sa-digit-editors {
        display: block;
    }
}
