.tm-cky-hide {
    display: none !important;
}

/* Notice banner */
.tm-cky-consent-container {
    position: fixed;
    left: 40px;
    bottom: 40px;
    width: 440px;
    max-width: calc(100% - 32px);
    box-sizing: border-box;
    z-index: 9999997;
    border-radius: 6px;
    font-family: inherit;
}

.tm-cky-consent-bar {
    background: #ffffff;
    border: 1px solid #f4f4f4;
    padding: 20px 26px;
    border-radius: 6px;
    box-shadow: 0 -1px 10px 0 rgba(172, 171, 171, 0.3);
}

.tm-cky-consent-container .tm-cky-title {
    color: #212121;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    margin: 0 0 12px;
}

.tm-cky-consent-container .tm-cky-notice-des p,
.tm-cky-modal p {
    color: #212121;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    margin: 0;
}

.tm-cky-notice-btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.tm-cky-btn {
    flex: auto;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 8px;
    min-height: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    text-transform: none;
    border-radius: 2px;
    cursor: pointer;
}

.tm-cky-btn:hover {
    opacity: 0.8;
}

.tm-cky-btn:focus-visible,
.tm-cky-btn-close:focus-visible,
.tm-cky-accordion-btn:focus-visible,
.tm-cky-show-desc-btn:focus-visible,
.tm-cky-btn-revisit:focus-visible,
.tm-cky-switch input:focus-visible {
    outline: 2px solid #1863dc;
    outline-offset: 2px;
}

.tm-cky-btn-outline {
    color: #1863dc;
    background: transparent;
    border: 2px solid #1863dc;
}

.tm-cky-btn-accept {
    color: #ffffff;
    background: #1863dc;
    border: 2px solid #1863dc;
}

/* Preference centre */
.tm-cky-overlay {
    position: fixed;
    inset: 0;
    background: #000000;
    opacity: 0.4;
    z-index: 9999998;
}

.tm-cky-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 845px;
    max-width: calc(100% - 32px);
    max-height: 79vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: #ffffff;
    color: #212121;
    border-radius: 6px;
    box-shadow: 0 32px 68px rgba(0, 0, 0, 0.3);
    font-family: inherit;
    z-index: 9999999;
}

.tm-cky-preference-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #f4f4f4;
}

.tm-cky-preference-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #212121;
}

.tm-cky-btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tm-cky-preference-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 24px;
}

.tm-cky-preference-content {
    padding: 12px 0;
    border-bottom: 1px solid #f4f4f4;
}

.tm-cky-preference-content p + p,
.tm-cky-desc-more {
    margin-top: 12px;
}

.tm-cky-desc-more p + p {
    margin-top: 12px;
}

.tm-cky-desc-collapsed .tm-cky-desc-more {
    display: none;
}

.tm-cky-show-desc-btn {
    padding: 0;
    margin-top: 4px;
    border: 0;
    background: transparent;
    color: #1863dc;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
}

.tm-cky-accordion {
    padding: 16px 0 14px;
    border-bottom: 1px solid #f4f4f4;
}

.tm-cky-accordion:last-child {
    border-bottom: 0;
}

.tm-cky-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tm-cky-accordion-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #212121;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: left;
    cursor: pointer;
}

.tm-cky-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #212121;
    border-bottom: 1.5px solid #212121;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.tm-cky-accordion.tm-cky-open .tm-cky-chevron {
    transform: rotate(45deg);
}

.tm-cky-always-active {
    color: #008000;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;
}

.tm-cky-modal .tm-cky-accordion-header-des {
    margin: 8px 0 0 19px;
}

.tm-cky-accordion-body {
    display: none;
    margin: 12px 0 0 19px;
}

.tm-cky-accordion.tm-cky-open .tm-cky-accordion-body {
    display: block;
}

.tm-cky-audit-item {
    list-style: none;
    margin: 0 0 8px;
    padding: 12px 16px;
    background: #f4f4f4;
    border-radius: 6px;
}

.tm-cky-audit-item li {
    display: flex;
    gap: 16px;
    padding: 2px 0;
    font-size: 12px;
    line-height: 20px;
    color: #212121;
}

.tm-cky-audit-item li span:first-child {
    flex: 0 0 90px;
    font-weight: 600;
}

.tm-cky-audit-item li span:last-child {
    word-break: break-word;
}

.tm-cky-modal .tm-cky-empty {
    padding: 12px 16px;
    background: #f4f4f4;
    border-radius: 6px;
    font-size: 12px;
    line-height: 20px;
}

.tm-cky-switch {
    display: inline-flex;
    margin: 0;
    flex: 0 0 auto;
}

.tm-cky-switch input {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    width: 44px;
    height: 24px;
    margin: 0;
    border-radius: 50px;
    background: #d0d5d2;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tm-cky-switch input::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    transition: left 0.2s ease;
}

.tm-cky-switch input:checked {
    background: #1863dc;
}

.tm-cky-switch input:checked::before {
    left: 23px;
}

.tm-cky-footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 22px 24px;
    border-top: 1px solid #f4f4f4;
}

/* Floating "Consent Preferences" button */
.tm-cky-btn-revisit {
    position: fixed;
    left: 15px;
    bottom: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #0056a7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 9999996;
}

/* Google Maps consent gate */
.gmap-consent-wrapper {
    position: relative;
}

.gmap-consent-wrapper iframe {
    display: none;
    width: 100%;
}

.gmap-consent-wrapper.tm-cc-maps-granted iframe {
    display: block;
}

.gmap-consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 220px;
    padding: 20px;
    text-align: center;
    background: #f5f6f8;
    border-radius: 6px;
}

.gmap-consent-wrapper.tm-cc-maps-granted .gmap-consent-placeholder {
    display: none;
}

.gmap-consent-placeholder p {
    margin: 0;
    font-size: 13px;
    color: #555555;
}

.gmap-consent-load-btn {
    padding: 8px 16px;
    border: 2px solid #1863dc;
    border-radius: 2px;
    background: #ffffff;
    color: #1863dc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.gmap-consent-load-btn:hover {
    background: #1863dc;
    color: #ffffff;
}

@media (max-width: 576px) {
    .tm-cky-consent-container {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
    }

    .tm-cky-consent-bar {
        padding: 18px 16px;
        border-radius: 0;
    }

    .tm-cky-notice-btn-wrapper .tm-cky-btn,
    .tm-cky-footer-wrapper .tm-cky-btn {
        flex: 1 1 100%;
    }

    .tm-cky-modal {
        max-height: 90vh;
    }

    .tm-cky-preference-header,
    .tm-cky-footer-wrapper {
        padding: 16px;
    }

    .tm-cky-preference-body {
        padding: 0 16px;
    }
}
