/* =============================================================================
   BUTTONS
   Global button styles used across the TBE website.
============================================================================= */

.tbe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    max-width: none;
    padding: 13px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.tbe-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.tbe-button:focus-visible {
    outline: 3px solid rgba(186, 0, 2, 0.28);
    outline-offset: 3px;
}

/* Primary button */

.tbe-button--primary {
    background: #008277;
    color: #ffffff;
    border-color: #008277;
    box-shadow: 0 10px 24px rgba(0, 130, 119, 0.26);
}

.tbe-button--primary:hover {
    background: #ba0002;
    color: #ffffff;
    border-color: #ba0002;
    box-shadow: 0 14px 30px rgba(186, 0, 2, 0.28);
}

/* Secondary button */

.tbe-button--secondary {
    background: #ffffff;
    color: #ba0002;
    border-color: #ba0002;
    box-shadow: 0 8px 20px rgba(0, 130, 119, 0.12);
}

.tbe-button--secondary:hover {
    background: #ba0002;
    color: #ffffff;
    border-color: #ba0002;
    box-shadow: 0 12px 26px rgba(0, 130, 119, 0.22);
}

/* Tertiary button */

.tbe-button--tertiary {
    background: #ba0002;
    color: #ffffff;
    border-color: #ba0002;
    box-shadow: 0 8px 20px rgba(0, 130, 119, 0.12);
}

.tbe-button--tertiary:hover {
    background: #ffffff;
    color: #008277;
    border-color: #008277;
    box-shadow: 0 12px 26px rgba(0, 130, 119, 0.22);
}

/* Shortlist added state */

.tbe-shortlist-button.is-added {
    background: #ba0002;
    color: #ffffff;
    border-color: #ba0002;
    box-shadow: 0 10px 24px rgba(186, 0, 2, 0.24);
}

.tbe-shortlist-button.is-added:hover {
    background: #8f0001;
    color: #ffffff;
    border-color: #8f0001;
    box-shadow: 0 14px 30px rgba(143, 0, 1, 0.26);
}

/* Card button layout */

.tbe-experience-card__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.tbe-experience-card__buttons .tbe-button {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

/* Small screen button behaviour */

@media (max-width: 600px) {
    .tbe-button {
        padding: 12px 18px;
    }

    .tbe-experience-card__buttons {
        flex-wrap: wrap;
    }

    .tbe-experience-card__buttons .tbe-button {
        flex: 1 1 100%;
    }
}

/* =============================================================================
   KADENCE BUTTON MATCHING
   Forces Kadence buttons to visually match TBE global buttons.
============================================================================= */

.wp-block-kadence-advancedbtn .kt-button,
.wp-block-kadence-advancedbtn .kb-button,
.kt-button,
.kb-button,
.wp-block-kadence-advancedbtn a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    font-size: 0.98rem !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.wp-block-kadence-advancedbtn .kt-button:hover,
.wp-block-kadence-advancedbtn .kb-button:hover,
.kt-button:hover,
.kb-button:hover,
.wp-block-kadence-advancedbtn a:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* Default Kadence button style - teal primary */

.wp-block-kadence-advancedbtn .kt-button,
.wp-block-kadence-advancedbtn .kb-button,
.wp-block-kadence-advancedbtn a {
    background: #008277 !important;
    border: 2px solid #008277 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0, 130, 119, 0.26);
}

.wp-block-kadence-advancedbtn .kt-button:hover,
.wp-block-kadence-advancedbtn .kb-button:hover,
.wp-block-kadence-advancedbtn a:hover {
    background: #ba0002 !important;
    border-color: #ba0002 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(186, 0, 2, 0.28);
}

/* Optional red Kadence button style */

.tbe-kadence-red .kt-button,
.tbe-kadence-red .kb-button,
.tbe-kadence-red a,
.kt-button.tbe-kadence-red,
.kb-button.tbe-kadence-red,
a.tbe-kadence-red {
    background: #ffffff !important;
    border: 2px solid #ba0002 !important;
    color: #ba0002 !important;
    box-shadow: 0 8px 20px rgba(186, 0, 2, 0.12);
}

.tbe-kadence-red .kt-button:hover,
.tbe-kadence-red .kb-button:hover,
.tbe-kadence-red a:hover,
.kt-button.tbe-kadence-red:hover,
.kb-button.tbe-kadence-red:hover,
a.tbe-kadence-red:hover {
    background: #ba0002 !important;
    border-color: #ba0002 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(186, 0, 2, 0.28);
}

/* =============================================================================
   KADENCE PRIMARY BUTTON OVERRIDE
   Use this when a Kadence button is using the wrong internal style.
============================================================================= */

.tbe-kadence-primary .kt-button,
.tbe-kadence-primary .kb-button,
.tbe-kadence-primary a,
.kt-button.tbe-kadence-primary,
.kb-button.tbe-kadence-primary,
a.tbe-kadence-primary {
    background: #008277 !important;
    border: 2px solid #008277 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0, 130, 119, 0.26);
}

.tbe-kadence-primary .kt-button:hover,
.tbe-kadence-primary .kb-button:hover,
.tbe-kadence-primary a:hover,
.kt-button.tbe-kadence-primary:hover,
.kb-button.tbe-kadence-primary:hover,
a.tbe-kadence-primary:hover {
    background: #ba0002 !important;
    border-color: #ba0002 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(186, 0, 2, 0.28);
}

/* =============================================================================
   KADENCE RED FILLED BUTTON
   Use for strong CTAs on dark teal sections.
============================================================================= */

.tbe-kadence-red-filled .kt-button,
.tbe-kadence-red-filled .kb-button,
.tbe-kadence-red-filled a,
.kt-button.tbe-kadence-red-filled,
.kb-button.tbe-kadence-red-filled,
a.tbe-kadence-red-filled {
    background: #ba0002 !important;
    border: 2px solid #ba0002 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(186, 0, 2, 0.28);
}

.tbe-kadence-red-filled .kt-button:hover,
.tbe-kadence-red-filled .kb-button:hover,
.tbe-kadence-red-filled a:hover,
.kt-button.tbe-kadence-red-filled:hover,
.kb-button.tbe-kadence-red-filled:hover,
a.tbe-kadence-red-filled:hover {
    background: #8f0001 !important;
    border-color: #8f0001 !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(143, 0, 1, 0.32);
}