/* =========================================================
   Soumya's Bonus Offer Calculator
   ========================================================= */

.sboc-calculator,
.sboc-calculator * {
    box-sizing: border-box;
}

.sboc-calculator {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 56% 44%;
    background: #ffffff;
    border: 1px solid #dce2ec;
    color: #14203d;
    font-family: "Poppins", Sans-serif;
    overflow: hidden;
    box-shadow: 0 4px 12px rgb(14 22 56 / 0.08), 0 20px 48px rgb(14 22 56 / 0.16);
    border-radius: 3em;
}

/* =========================================================
   LEFT / RIGHT
   ========================================================= */

.sboc-left {
    min-width: 0;
    padding: 30px 38px 34px;
    background: #fff;
}

.sboc-right {
    min-width: 0;
    padding: 30px 30px 30px;
    background: #0e1638;
    color: #fff;
}

/* =========================================================
   HEADING
   ========================================================= */

.sboc-heading h2 {
    margin: 0 0 9px;
    font-size: 29px;
    line-height: 1.15;
    font-weight: 800;
    color: #14203d;
}

.sboc-heading p {
    margin: 0 0 23px;
    color: #65718c;
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   MAIN OFFER TABS
   ========================================================= */

.sboc-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 2px;
    margin-bottom: 27px;
    border: 1px solid #cbd4e4;
    border-radius: 30px;
    background: #f7f9fc;
}

.sboc-tab {
    border: 0!important;
    background: transparent;
    color: #4d5872;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color .18s ease,
        color .18s ease;
}

.sboc-tab.is-active {
    background: #0e1638!important;
    color: #fff;
    border: none;
    border-radius: 2em;
}

.sboc-tab:hover:not(.is-active) {
    background: #eef2f8;
}
.sboc-tab:hover {
    color: #000!important;
}

/* =========================================================
   OFFER PANELS
   ========================================================= */

.sboc-offer-panel {
    width: 100%;
}

.sboc-is-hidden {
    display: none !important;
}

/* =========================================================
   FIELD GRID
   ========================================================= */

.sboc-fields {
    display: grid;
}

.sboc-fields-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 21px;
}

.sboc-offer-fields {
    margin-bottom: 0;
}

.sboc-general-fields {
    margin-top: 24px;
}

/* =========================================================
   FIELD
   ========================================================= */

.sboc-field {
    min-width: 0;
}

.sboc-field label {
    position: relative;
    display: block;
    margin: 0 0 7px;
    color: #14203d;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.sboc-field label span {
    color: #73809a;
    font-weight: 400;
}

/* =========================================================
   INPUTS
   ========================================================= */

.sboc-input-wrap {
    position: relative;
    width: 100%;
}

.sboc-input-wrap input,
.sboc-input-wrap select {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #c8d2e2!important;
    border-radius: 5px!important;
    outline: none;
    background: #fff;
    color: #243253;
    font-family: inherit;
    font-size: 16px;
    line-height: 48px;
    box-shadow: none;
    appearance: auto;
}

.sboc-input-wrap input:focus,
.sboc-input-wrap select:focus {
    border-color: #7e8baa;
    box-shadow: 0 0 0 2px rgba(126, 139, 170, .12);
}

.sboc-input-wrap.sboc-prefix input {
    padding-left: 30px;
}

.sboc-input-wrap.sboc-suffix input {
    padding-right: 38px;
}

.sboc-input-wrap > span {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    color: #69758f;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

.sboc-prefix > span {
    left: 13px;
}

.sboc-suffix > span {
    right: 13px;
}

.sboc-select-wrap select {
    padding-right: 34px;
}

/* =========================================================
   QUICK DEPOSIT VALUES
   ========================================================= */

.sboc-quick-values {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

.sboc-quick-values button {
    min-width: 51px;
    padding: 5px 13px;
    border: 1px solid #cbd4e4;
    border-radius: 18px;
    background: #fff;
    color: #41506d;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
    transition:
        background-color .18s ease,
        border-color .18s ease;
}

.sboc-quick-values button:hover {
    background: #f4f6fa;
    border-color: #b9c4d7;
    color:#000!important;
}

/* =========================================================
   WAGERING MODE
   IMPORTANT:
   This now sits directly underneath the wagering input.
   ========================================================= */

.sboc-mode-selector {
    margin-top: 12px;
    width: 100%;
}

.sboc-mode-label {
    margin-bottom: 7px;
    color: #65718c;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.sboc-mode-tabs {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 0;
    padding: 2px;
    border: 1px solid #cbd4e4;
    border-radius: 2em!important;
    background: #f7f9fc;
}

.sboc-mode-tab {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px!important;
    border: 0!important;
    border-radius: 5px;
    background: transparent;
    color: #4d5872;
    font-family: inherit;
    font-size: 14px!important;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color .18s ease,
        color .18s ease;
}

.sboc-mode-tab.is-active {
    background: #0e1638!important;
    color: #fff;
    border: none;
    border-radius: 2em;
}

.sboc-mode-tab:hover:not(.is-active) {
    background: #eef2f8;
}

.sboc-mode-tab:hover {
    color: #000!important;
}

/* =========================================================
   TOOLTIP HELP BUTTON
   ========================================================= */

.sboc-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0 0 0 3px;
    border: 1px solid #aeb8cb;
    border-radius: 50%;
    background: #fff;
    color: #687590;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}

/*
 * Tooltip is generated from data-tooltip.
 * No JavaScript is required for the visual tooltip.
 */
.sboc-help::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 50;
    left: 50%;
    bottom: calc(100% + 9px);
    width: 220px;
    padding: 9px 11px;
    border-radius: 6px;
    background: #14203d;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition:
        opacity .15s ease,
        visibility .15s ease,
        transform .15s ease;
}

.sboc-help::before {
    content: "";
    position: absolute;
    z-index: 51;
    left: 50%;
    bottom: calc(100% + 4px);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #14203d;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%);
    transition:
        opacity .15s ease,
        visibility .15s ease;
}

.sboc-help:hover::after,
.sboc-help:hover::before,
.sboc-help:focus-visible::after,
.sboc-help:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.sboc-help:hover::after,
.sboc-help:focus-visible::after {
    transform: translate(-50%, 0);
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.sboc-right h3 {
    margin: 0 0 19px;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

/* =========================================================
   METRICS
   ========================================================= */

.sboc-metric {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 15px;
    margin-bottom: 15px;
    border-bottom: 1px dotted rgba(255,255,255,.25);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.sboc-metric > div {
    min-width: 0;
}

.sboc-metric > strong {
    flex: 0 0 auto;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.sboc-metric small {
    display: block;
    margin-top: 5px;
    color: #8e98b5;
    font-size: 12px;
    line-height: 1.35;
}

/* =========================================================
   WORTH
   ========================================================= */

.sboc-worth {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 25px 0 18px;
}

.sboc-worth > div {
    max-width: 180px;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}

.sboc-worth > strong {
    color: #ff7774;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================================================
   NOTE
   ========================================================= */

.sboc-note {
    padding: 15px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    background: #20294e;
    color: #f0f2fa;
    font-size: 13px;
    line-height: 1.45;
}

.sboc-note strong {
    display: block;
    margin-bottom: 5px;
}

.sboc-note p {
    margin: 0;
}

/* =========================================================
   BREAK EVEN
   ========================================================= */

.sboc-break-even {
    margin-top: 15px;
    color: #a9b2ca;
    font-size: 12px;
    line-height: 1.45;
}

.sboc-break-even b {
    color: #fff;
}

/* =========================================================
   DISCLAIMER
   ========================================================= */

.sboc-disclaimer {
    margin: 17px 0 0;
    color: #8993b0;
    font-size: 12px;
    line-height: 1.45;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .sboc-calculator {
        grid-template-columns: 1fr;
    }

    .sboc-left,
    .sboc-right {
        padding: 25px;
    }

    .sboc-right {
        padding-top: 28px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .sboc-left,
    .sboc-right {
        padding: 20px;
    }

    .sboc-heading h2 {
        font-size: 26px;
    }

    .sboc-fields-two {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .sboc-tabs {
        width: 100%;
    }

    .sboc-tab {
        flex: 1;
        text-align: center;
    }

    .sboc-general-fields {
        margin-top: 20px;
    }

    .sboc-mode-tabs {
        width: 100%;
    }

    .sboc-mode-tab {
        flex: 1 1 50%;
        white-space: normal;
    }

    .sboc-worth {
        align-items: flex-start;
    }

    .sboc-worth > strong {
        font-size: 28px;
    }

    .sboc-metric {
        gap: 12px;
    }

    .sboc-metric > strong {
        font-size: 13px;
    }

    .sboc-help::after {
        left: auto;
        right: -8px;
        transform: translate(0, 4px);
    }

    .sboc-help:hover::after,
    .sboc-help:focus-visible::after {
        transform: translate(0, 0);
    }

    .sboc-help::before {
        left: auto;
        right: -1px;
        transform: none;
    }
}