.closebt-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 40px;
}

.closebt {
    transition: all 0.2s;
    cursor: pointer;
}

.closebt:hover {
    transform: rotate(90deg);
}

.modal-content {
    margin-top: 200px;
    text-align: center;
    color: var(--tt-color-surface);
}

.modal-message {
    color: var(--tt-color-surface);
    font-size: 36px;
}

.dc-modal-video iframe {
    margin-bottom: 20px;
}

.dc-modal-title,
.dc-vimeo-title,
.dc-modal-memo,
.dc-vimeo-memo {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.dc-modal-header,
.dc-vimeo-header {
    max-width: 640px;
    margin: 0 auto 20px;
    position: relative;
    min-height: 23px;
}

.dc-modal-header .closebt-container,
.dc-vimeo-header .closebt-container,
.dc-send-message-form-header .closebt-container {
    margin: 0;
    position: absolute;
    right: 0;
    top: -20px;
    width: 52px;
}

.dc-modal-header .ticket-number {
    font-size: 14px;
    margin-top: 10px;
}


@media only screen and (max-width: 600px) {
    .dc-modal-title,
    .dc-modal-memo,
    .dc-modal-header {
        max-width: 90vw;
    }
}

.modal-message {
    max-width: 640px;
    margin: 0 auto 20px;
    height: 360px;
    line-height: 360px;
    border: 2px solid var(--tt-color-surface);
}

.dc-course-title,
.dc-group-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.dc-group-title {
    display: block;
}

.dc-group-name {
    width: 200px;
}

.dc-group-tag {
    width: 90px;
}

.dc-group-time {
    width: 60px;
}

.dc-group-teacher {
    width: 80px;
}

.dc-group-date {
    width: 152px;
    float: right;
}

.dc-group-title span{
    display: inline-block;
}

@media only screen and (max-width: 600px) {
    .dc-group-title span {
        display: block;
    }
    .dc-group-date {
        float: none;
    }
}

.dc-course-name,
.dc-group-name {
    font-size: 18px;
    color: var(--tt-color-brand);
    font-weight: normal;
}

.dc-dashboard h4 {
    margin-bottom: 15px;
}

.dc-dashboard h3:first-child {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--tt-color-border);
}

.dc-user-name {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--tt-color-border);
}

.dc-list-of-groups {
    margin-bottom: 25px;
}

.dc-list-of-courses > .dc-course-item > .dc-list-of-lessons,
.dc-list-of-groups > .dc-group-item > .dc-list-of-lessons {
    display: none;
}

.dc-list-of-lessons table{
    margin-bottom: 20px !important;
}

.dc-list-wrap:not(:last-child) {
    border-bottom: 1px solid var(--tt-color-border);
    margin-bottom: 25px;
}

ul.dc-list-of-courses,
ul.dc-list-of-groups {
    list-style-type: none !important;
}

ul.dc-list-of-courses > .dc-course-item,
ul.dc-list-of-groups > .dc-group-item {
    position: relative;
    display: inline-block;
    width: 100%;
}

ul.dc-list-of-courses > .dc-course-item .dc-course-title:before,
ul.dc-list-of-groups > .dc-group-item .dc-group-title:before {
    content: "+";
    color: var(--tt-color-brand-contrast);
    display: inline-block;
    height: 20px;
    width: 20px;
    background: var(--tt-color-brand);
    text-align: center;
    font-size: 20px;
    line-height: 20px;
    position: absolute;
    top: 2px;
    left: -30px;
}

ul.dc-list-of-courses > li .dc-course-title.dc-active:before,
ul.dc-list-of-groups > li .dc-group-title.dc-active:before {
    content: "-";
}

.dc-lesson-item td {
    text-align: left;
}

.dc-lesson-location {
    min-width: 190px;
}

#display-old-groups-checkbox,
#display-old-groups-checkbox + label {
    display: inline-block;
    cursor: pointer;
}

#display-old-groups-checkbox + label + .dc-list-wrap .dc-old-group {
    display: none;
}

#display-old-groups-checkbox:checked + label + .dc-list-wrap .dc-old-group {
    display: inline-block;
}

#display-old-groups-checkbox {
    margin: 3px 7px 5px 0;
}

#display-old-groups-checkbox + label {
    margin-bottom: 15px;
}

ul.dc-list-of-groups > .dc-group-item.dc-old-group {
    display: none;
}

.dc-old-group .dc-group-name {
    color: var(--tt-color-text-muted);
}

ul.dc-list-of-groups.visible-old-groups > .dc-group-item.dc-old-group {
    display: inline-block;
}

/* Modal */
.dialog,
.dialog__overlay {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.dialog {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.dialog__overlay {
    position: absolute;
    z-index: 1;
    background: color-mix(in srgb, var(--tt-color-text) 90%, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.dialog--open .dialog__overlay {
    opacity: 1;
    pointer-events: auto;
}

.dialog__content {
    width: 50%;
    max-width: 560px;
    min-width: 290px;
    background: var(--tt-color-surface);
    padding: 4em;
    text-align: center;
    position: relative;
    z-index: 5;
    opacity: 0;
}

#rebook-modal .dialog__content {
    max-width: 900px;
}

.dialog--open .dialog__content {
    pointer-events: auto;
}

/* Content */
.dialog h2 {
    margin: 0;
    font-weight: 400;
    font-size: 2em;
    padding: 0 0 2em;
}

.dialog.dialog--open .dialog__content,
.dialog.dialog--close .dialog__content {
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

.dialog.dialog--open .dialog__content {
    animation-name: anim-open;
}

.dialog.dialog--close .dialog__content {
    animation-name: anim-close;
}

@keyframes anim-open {
    0% {
        opacity: 0;
        transform: scale3d(1.1, 1.1, 1);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes anim-close {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale3d(0.9, 0.9, 1);
    }
}

.dc-cancel-btn {
    cursor: pointer;
}

.dc-hidden-btn {
    display: none !important;
}

.dc-modal-rebook span {
    display: inline-block;
    padding: 16px 0;
}

.dc-modal-list-of-lessons {
    max-height: 276px;
    overflow-y: auto;
}

.dc-modal-list-of-lessons table {
    margin-bottom: 0;
}

.dc-upcoming-lesson:not(.dc-cancelled-lesson) {
    font-weight: bold !important;
}

.dc-cancelled-lesson .dc-lesson-weekday,
.dc-cancelled-lesson .dc-lesson-date,
.dc-cancelled-lesson .dc-lesson-time,
.dc-cancelled-lesson .dc-lesson-location,
.dc-cancelled-lesson .dc-lesson-teacher
{
    text-decoration: line-through;
}

.dc-single-lesson .dc-lesson-rebook {
    display: none !important;
}

.dc-single-lesson .dc-lesson-cancel {
    display: none !important;
}

.dc-list-of-lessons table tr td{
    padding: 7px 0 15px;
}

.dc-list-of-lessons table {
    border-collapse: collapse;
}

.dc-list-of-lessons table tr {
    border-top: 1px solid var(--tt-color-border);
    border-bottom: 1px solid var(--tt-color-border);
    transition: all .3s ease;
}

.dc-list-of-lessons table tr:first-child {
    border-top: none;
}

.dc-dashboard table td {
    border: none;
}

.dc-dashboard .dc-list-of-courses .dc-course-item,
.dc-dashboard .dc-list-of-lessons {
    max-width: 98%;
}

.dc-dashboard .dc-group-date {
    width: 220px;
}

@media screen and (max-width: 782px) {
    .dc-dashboard table td.dc-lesson-weekday,
    .dc-dashboard table td.dc-lesson-date,
    .dc-dashboard table td.dc-lesson-time,
    .dc-dashboard table td.dc-lesson-teacher,
    .dc-dashboard table td.dc-lesson-teacher + td,
    .dc-dashboard table td.dc-lesson-calendar,
    .dc-dashboard table td.dc-lesson-video,
    .dc-dashboard table td.dc-lesson-location
    {
        display: block !important;
        overflow: hidden;
        padding: 0;
    }

    .dc-dashboard table td.dc-lesson-weekday {
        margin-top: 10px;
    }

    .dc-dashboard table td.dc-lesson-video {
        margin-bottom: 10px;
    }

    .dc-list-of-lessons table tr {
        border-bottom: none !important;
    }

    .dc-list-of-lessons table {
        max-width: 85vw;
        border-top: 1px solid var(--tt-color-border);
        margin-top: 10px;
    }

    .dc-list-of-lessons table {
        max-width: 85vw;
        border-top: 1px solid var(--tt-color-border);
        margin-top: 10px;
    }

    .dc-list-of-courses .dc-course-item {
        max-width: 85vw;
    }
}

.dc-messages .dc-message {
    padding: 10px 0 10px 0;
    border-bottom: 1px solid var(--tt-color-border);
}

.dc-messages .dc-message-subject {
    margin-bottom: 0;
}

.dc-messages .dc-message:last-child {
    border-bottom: none;
}

.dc-messages .dc-answers {
    display: none;
    padding-left: 30px;
}

.dc-messages .dc-answers .dc-answer {
    padding: 10px 0 0 0;
}

.dc-messages  .dc-message-main {
    position: relative;
    cursor: pointer;
    padding-left: 30px;
}

.dc-messages  .dc-message-main .dc-message-body {
    display: none;
}

.dc-message-body.unread {
    font-weight: 600;
}

.dc-messages .expanded .dc-message-body {
    display: block;
}

.dc-messages  .dc-message-main:before  {
    content: "+";
    color: var(--tt-color-brand-contrast);
    display: inline-block;
    height: 20px;
    width: 20px;
    background: var(--tt-color-brand);
    text-align: center;
    font-size: 20px;
    line-height: 20px;
    position: absolute;
    top: 2px;
    left: 0;
}

.dc-messages .expanded .dc-message-main:before {
    content: "-";
}

.dc-message-date {
    opacity: 0.5;
}

.send-answer-form {
    margin: 10px 0;
    display: flex;
}

.send-answer-form [name="answer_text"]{
    max-width: 70%;
    color: var(--tt-color-text-muted);
}

.send-answer-form [name="answer_text"]::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    opacity: 0.4;
}
.send-answer-form [name="answer_text"]::-moz-placeholder { /* Firefox 19+ */
    opacity: 0.4;
}
.send-answer-form [name="answer_text"]:-ms-input-placeholder { /* IE 10+ */
    opacity: 0.4;
}
.send-answer-form [name="answer_text"]:-moz-placeholder { /* Firefox 18- */
    opacity: 0.4;
}

.send-answer-btn,
.dc-send-message-btn {
    margin-left: 3px;
    background: var(--tt-color-brand);
    color: var(--tt-color-brand-contrast);
    border: none;
    padding: 2.5px 25px;
    width: auto;
    cursor: pointer;
    vertical-align: bottom;
    transition: all .3s ease;
}

.send-answer-btn svg,
.dc-send-message-btn svg {
    max-height: 16px;
    max-width: 16px;
    padding-top: 3px;
}

.send-answer-btn:hover,
.dc-send-message-btn:hover {
    opacity: 0.8;
}

.dc-messages {
    position: relative;
}

#send-message-modal-btn {
    font-weight: 700;
    position: absolute;
    top: 4px;
    right: 15px;
}


@media only screen and (max-width: 600px) {
    #send-message-modal-btn {
        right: 0;
    }
}

#modal-send-message-form h5 {
    color: var(--tt-color-brand-contrast);
    text-align: left;
}

.dc-send-message-form {
    text-align: left;
}

.dc-send-message-form input[type="text"],
.dc-send-message-form textarea {
    width: 300px;
    display: block;
    margin-bottom: 18px;
}

.dc-send-message-form-header {
    max-width: 640px;
    margin: 0 auto 20px;
    position: relative;
    min-height: 23px;
}

.dc-send-message-btn {
    border: 2px solid var(--tt-color-surface);
    padding: 0.5px 35px;
    margin-left: 0;
}

#modal-send-message-form .modal-content {
    padding: 0 20px;
}

.dc-message {
    position: relative;
}

.dc-message-button,
.dc-message-read-button {
    border: none;
    color: var(--tt-color-brand-contrast);
    margin-left: 3px;
    background: var(--tt-color-brand);
    padding: 3px 15px;
    width: auto;
    cursor: pointer;
    transition: all .3s ease;
    min-height: 21.5px;
    min-width: 61px;
    vertical-align: top;
    font-weight: normal;
}

.dc-message-read-button.clicked {
    border: none;
    color: transparent;
    background: var(--tt-color-surface);
    background-image: url("../img/double-tick-indicator.svg") ;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    cursor: auto;
}

.dc-message-archive-button:not(:disabled):hover,
.dc-message-read-button:not(.clicked):hover {
    opacity: 0.8;
}

.dc-message-archive-button {
    position: absolute;
    top: 10px;
    right: 0;
}

.dc-message-archive-button:disabled {
    opacity: 0.5;
    z-index: -1;
}


#display-archived-messages-checkbox + label + .dc-messages-wrap .dc-message-archived {
    display: none !important;
}

#display-archived-messages-checkbox:checked + label + .dc-messages-wrap .dc-message-archived {
    display: block !important;
}

.dc-message-archived .send-answer-form {
    display: none;
}

#display-archived-messages-checkbox + label {
    display: inline-block;
    margin-bottom: 10px;
}

.dc-ticket-image {
    max-width: 250px;
    display: block;
    margin-bottom: 10px;
}

.dc-tickets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
    margin-top: 20px;
}


.dc-tickets .dc-ticket {
    transition: all .3s ease;
}

.dc-tickets .dc-ticket:hover {
    opacity: 0.8;
}

.dc-tickets .dc-ticket h5 {
    margin-bottom: 0;
}

.dc-tickets .dc-ticket h5 span {
    font-size: 16px;
}

.dc-tickets a.dc-ticket:hover {
    color: var(--tt-color-brand);
}

@media only screen and (max-width: 600px) {
    .dc-tickets {
        grid-template-columns: 1fr;
    }


}

.dc-modal-title {
    font-size: 18px;
    line-height: 1.3em;
}

.dc-modal-title span {
    font-size: 16px;
}

#display-old-tickets-checkbox,
#display-archived-messages-checkbox {
    margin: 3px 7px 5px 0;
}

#display-old-workshops-checkbox,
#display-old-workshops-checkbox + label,
#display-archived-messages-checkbox,
#display-archived-messages-checkbox + label,
#display-old-tickets-checkbox,
#display-old-tickets-checkbox + label {
    display: inline-block;
    cursor: pointer;
}

#display-old-tickets-checkbox + label +  .dc-tickets .dc-old-ticket {
    display: none;
}

#display-old-tickets-checkbox:checked + label +  .dc-tickets .dc-old-ticket {
    display: block;
}

.dc-workshops-wrap {
    display: grid;
    padding-bottom: 20px;
    margin-top: 20px;
}

.dc-workshops-wrap table tr td {
    padding: 8px 0;
}


#display-old-workshops-checkbox {
    margin: 3px 7px 5px 0;
}

#display-old-workshops-checkbox + label + .dc-workshops-wrap .dc-old-workshop {
    display: none;
}

#display-old-workshops-checkbox:checked + label + .dc-workshops-wrap .dc-old-workshop {
    display: table-row;
}

@media screen and (max-width: 782px) {
    .dc-dashboard table td.dc-workshop-date,
    .dc-dashboard table td.dc-workshop-time,
    .dc-dashboard table td.dc-workshop-title,
    .dc-dashboard table td.dc-workshop-location,
    .dc-dashboard table td.dc-workshop-teacher,
    .dc-dashboard table td.dc-workshop-teacher + td,
    .dc-dashboard table td.dc-workshop-calendar,
    .dc-dashboard table td.dc-workshop-cancel {
        display: block !important;
        overflow: hidden;
        padding: 0;
    }

    .dc-dashboard table td.dc-workshop-cancel {
        margin-bottom: 10px;
    }

    .dc-dashboard table td.dc-workshop-date {
        margin-top: 10px;
    }

    .dc-dashboard .dc-workshop--item {
        padding: 10px 0;
        border-bottom: 1px solid var(--tt-color-border);
        text-align: left;
    }

    .dc-dashboard .dc-workshop--item:last-child {
        border-bottom: none;
    }

    #display-old-workshops-checkbox:checked + label + .dc-workshops-wrap .dc-old-workshop {
        display: block;
    }
}

.dc-login-user-name {
    margin-top: 10px;
}

.dc-login-user-id {
    margin-bottom: 30px;
}

.dc-workshop-filters {
    max-width: 400px;
}

.workshop-type-wrapper,
.workshop-location-wrapper,
.workshop-day-of-week-wrapper{
    margin-bottom: 20px;
}

.dc-workshop-register button {
    margin-bottom: 0;
    min-width: 144px;
}

.dc-workshop--item td {
    text-align: left;
}

.dc-workshop--item td.dc-workshop-register {
    text-align: center;
}

.dc-workshop-title {
    font-weight: 600;
}

.dc-workshop-register button {
    transition: all .3s ease;
}

.dc-workshop-register button:focus,
.dc-workshop-register button:active,
.dc-workshop-register button:hover {
    opacity: 0.8;
}

.dc-cancel-workshop {
    color: var(--tt-color-danger) !important;
    background-color: var(--tt-color-surface) !important;
    border: 1px solid var(--tt-color-danger) !important;
}

.dc-cancel-workshop:focus,
.dc-cancel-workshop:active,
.dc-cancel-workshop:hover {
    background-color: var(--tt-color-danger) !important;
    color: var(--tt-color-danger-contrast) !important;
}

.dc-workshop-started,
.dc-24h-cancellation-restricted .dc-cancel-workshop.dc-hidden-cancel-workshop[data-wsmatchcode24h="1"],
.restricted-24h-cancellation.dc-workshop-cancel-btn.dc-hidden-cancel-workshop {
    display: none !important;
}

.multiselect__tag i {
    margin-right: 0;
}

@media screen and (max-width: 782px) {
    .dc-workshop--item td {
        display: block;
        border: none;
        text-align: left;
        padding-top: 3px;
        padding-bottom: 5px;
    }

    .dc-workshop--item td.dc-workshop-register {
        text-align: left;
    }

    .dc-workshop--item td:first-child {
        padding-top: 20px;
    }

    .dc-workshop--item td:last-child {
        padding-bottom: 20px;
        border-bottom: 1px solid var(--tt-color-border);
    }

}

.dc-add-package-group-dropdown,
.dc-add-package-dropdown {
    height: 39px;
    max-width: 90vw;
    margin-top: 20px;
    margin-bottom: 15px;
}

.dc-package-modal {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dc-package-modal-open .uchat-widget-send-button {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.dc-package-modal .dc-package-modal__card {
    position: relative;
    box-sizing: border-box;
    width: min(440px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0;
    padding: 32px;
    overflow-y: auto;
    border-radius: 6px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    background: var(--tt-color-surface, #fff);
    color: var(--tt-color-text, #242124);
    text-align: left;
}

.dc-package-modal__title {
    margin: 0 40px 20px 0;
    color: var(--tt-color-text, #242124);
    font-size: 24px;
    line-height: 1.25;
}

.dc-package-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--tt-color-text-muted, #707070);
    cursor: pointer;
    font-size: 30px;
    font-weight: 300;
    line-height: 36px;
}

.dc-package-modal__close:hover,
.dc-package-modal__close:focus {
    background: var(--tt-color-surface-muted, #f7f4f6);
    color: var(--tt-color-text, #242124);
}

.dc-package-modal form {
    margin: 0;
}

.dc-package-modal label {
    display: block;
    margin-bottom: 8px;
    color: var(--tt-color-text, #242124);
    font-weight: 600;
}

.dc-package-modal .dc-add-package-dropdown,
.dc-package-modal .dc-package-terminate-date-dropdown {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: 44px;
    margin: 0 0 20px;
    padding: 0 10px;
    border: 1px solid var(--tt-color-border, #d9d1d6);
    border-radius: 3px;
    background: var(--tt-color-surface, #fff);
    color: var(--tt-color-text, #242124);
    font-size: 16px;
}

.dc-package-modal__summary {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 4px solid var(--tt-color-brand, #851159);
    background: var(--tt-color-surface-muted, #f7f4f6);
    color: var(--tt-color-text, #242124);
}

.dc-package-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dc-package-modal .dc-add-package-btn,
.dc-package-modal .dc-terminate-package-btn,
.dc-package-modal__cancel {
    box-sizing: border-box;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 18px;
    border-radius: 3px;
    cursor: pointer;
    float: none;
    line-height: 20px;
    text-align: center;
}

.dc-package-modal .dc-add-package-btn {
    width: 100%;
    border: 2px solid var(--tt-color-brand, #851159) !important;
}

.dc-package-modal .dc-terminate-package-btn {
    border: 2px solid var(--tt-color-danger, #dc3545) !important;
    background: var(--tt-color-danger, #dc3545) !important;
    color: var(--tt-color-danger-contrast, #fff) !important;
}

.dc-package-modal__cancel {
    border: 1px solid var(--tt-color-border, #d9d1d6);
    background: var(--tt-color-surface, #fff);
    color: var(--tt-color-text, #242124);
}

@media only screen and (max-width: 600px) {
    .dc-package-modal .dc-package-modal__card {
        width: calc(100% - 32px);
        padding: 26px 20px 20px;
    }

    .dc-package-modal__actions {
        flex-direction: column;
    }

    .dc-package-modal .dc-terminate-package-btn,
    .dc-package-modal__cancel {
        width: 100%;
    }
}

.dc-pkg-group-start-input {
    height: 36px;
}

#add-package-group-modal-btn {
    transition: all .3s ease;
}

#add-package-group-modal-btn:hover {
    opacity: 0.8;
}

.dc-add-package-btn,
.dc-terminate-package-btn,
.dc-add-package-group-btn {
    border: 2px solid var(--tt-color-surface) !important;
    margin-top: 20px;
    transition: all .3s ease;
}

.dc-terminate-package-btn {
    margin-right: 0 !important;
}

.dc-package-terminate-date-dropdown {
    min-width: 130px;
    height: 30px;
    margin-top: 12px;
}

.dc-pause-package-group-btn,
.dc-end-package-group-btn {
    border: 2px solid var(--tt-color-surface) !important;
    margin-top: 20px;
}

.dc-pause-package-group-form input[type="date"],
.dc-end-package-group-form input[type="date"] {
    height: 36px;
}

.dc-pause-package-group-form p,
.dc-end-package-group-form p {
    margin-top: 20px;
    margin-bottom: 0;
}

.gdlr-button {
    transition: all .3s ease;
}

.gdlr-button:hover,
.dc-package-group-start-btn:hover {
    opacity: 0.8;
}

.outlined-btn {
    color: var(--tt-color-danger) !important;
    background-color: var(--tt-color-surface) !important;
    border: 1px solid var(--tt-color-danger) !important;
    transition: all .3s ease;
}

.outlined-btn:not(.disabled-end-btn, .dc-package-group-start-btn, .dc-package-disabled-extend-btn):hover {
    background-color: var(--tt-color-danger) !important;
    color: var(--tt-color-danger-contrast) !important;
    opacity: 0.8;
}

.dc-package-group-buttons {
    display: flex;
    justify-content: space-between;
}

.dc-package-group-buttons a {
    width: 32%;
    text-align: center;
    margin-right: 1%;
    padding-left: 0;
    padding-right: 0;
}
.dc-package-group-buttons a:last-child {
    margin-right: 0;
}

.dc-package-group-end-btn.disabled-end-btn,
.dc-package-disabled-extend-btn {
    opacity: 0.4 !important;
    cursor: default !important;
}

.dc-package-group-ended-btn {
    opacity: 0.4 !important;
    padding: 10px 34px !important;
}

.dc-package-group-ended-btn:hover {
    color: var(--tt-color-danger) !important;
    background-color: var(--tt-color-surface) !important;
    border: 1px solid var(--tt-color-danger) !important;
    cursor: default;
}

.dc-package-group-buttons a {
    margin-bottom: 0 ;
}

.dc-package-group--item-first-row {
    display: grid;
    padding: 0 0 10px;
    grid-template-columns: 40px 147px 1.3fr 1fr 1fr;
}

.dc-package-group--item-second-row {
    display: block;
}

.dc-package-group--item {
    padding: 15px 0;
}

.dc-package-group--item:hover {
    background: color-mix(in srgb, var(--tt-color-event-surface) 20%, var(--tt-color-surface));
}

.dc-package-group-start-btn,
.dc-package-group-start-btn:hover {
    opacity: 0.6 !important;
    cursor: default !important;
}

#display-old-packages-checkbox {
    margin: 3px 7px 5px 0;
    cursor: pointer;
}

#display-old-packages-checkbox + label + .dc-package-wrap .dc-list-of-packages .dc-old-package {
    display: none;
}

#display-old-packages-checkbox:checked + label + .dc-package-wrap .dc-list-of-packages .dc-old-package {
    display: block;
}

@media screen and (max-width: 782px) {
    .dc-package-group--item-row {
        display: block;
    }

    .dc-package-group-buttons {
        display: block;
    }

    .dc-package-group-buttons a {
        width: 100%;
        margin-bottom: 5px;
    }

    .dc-package-group-buttons a:last-child {
        margin-bottom: 10px;
    }

    .dc-dashboard .dc-package-group--item {
        border-bottom: 1px solid var(--tt-color-border);
    }

    .dc-dashboard .dc-package-group--item:last-child {
        border-bottom: none;
    }

}


.dc-package--item {
    padding: 15px 0;
}

.dc-package--item-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr 1fr 1fr 1fr 150px;
}

.dc-package-group--item:hover {
    background: color-mix(in srgb, var(--tt-color-event-surface) 20%, var(--tt-color-surface));
}

.dc-package--item-titles {
    font-weight: 600;
}

.dc-package--item-titles:hover {
    background: none;
}

.dc-package--item .gdlr-button {
    margin-bottom: 0;
    text-align: center;
}

.dc-cell {
    display: flex;
    align-items: center;
}

#display-old-packages-checkbox + label {
    display: inline-block;
    cursor: pointer;
}

.dc-add-package-btn {
    margin-right: 0;
}

.label-mobile-only {
    display: none;
}

.dc-package-details {
    font-weight: 600;
}
.dc-package-details span {
    display: inline-block;
    min-width: 100px;
    font-weight: 400;
}

@media screen and (max-width: 782px) {
    .dc-package--item-row {
        display: block;
    }

    .label-mobile-only {
        display: inline;
    }

    .dc-package--item .gdlr-button {
        width: 100%;
        margin-bottom: 5px;
    }

    .dc-package-details-btn .gdlr-button {
        margin-top: 5px;
    }

    .dc-package--item .gdlr-button:last-child {
        margin-bottom: 10px;
    }

    .dc-dashboard .dc-package--item {
        border-bottom: 1px solid var(--tt-color-border);
    }

    .dc-dashboard .dc-package--item:last-child {
        border-bottom: none;
    }

    .dc-package--item-titles {
        display: none;
    }

}

.dc-package-monthdue2 span {
    max-width: 100px;
    line-height: 1.2em;
    margin-top: 3px;
}


/* Self-Register: einheitliche Eingabefelder (inkl. Telefonnummer) */
.dc-self-registration-form input[type="text"],
.dc-self-registration-form input[type="email"],
.dc-self-registration-form input[type="tel"],
.dc-self-registration-form input[type="password"] {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 8px auto;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid var(--tt-color-border);
    border-radius: 2px;
    background: var(--tt-color-surface);
    color: var(--tt-color-text);
    font-size: 16px;
    line-height: 1.4;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Fokus/Active-States passend zur CI-Farbe */
.dc-self-registration-form input[type="text"]:focus,
.dc-self-registration-form input[type="email"]:focus,
.dc-self-registration-form input[type="tel"]:focus,
.dc-self-registration-form input[type="password"]:focus {
    outline: none;
    border-color: var(--tt-color-brand);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--tt-color-brand) 8%, transparent);
}

/* Platzhalter dezenter */
.dc-self-registration-form input::placeholder {
    opacity: .7;
}

/* iOS/Safari Eigenheiten bei Tel-Feldern glätten */
.dc-self-registration-form input[type="tel"] {
    letter-spacing: .02em; /* vermeidet optisch unruhige Ziffern */
    font-variant-numeric: tabular-nums;
}

/* Abstand unter dem Submit-Button angleichen */
.dc-self-registration-form .gdlr-button {
    display: inline-block;
    margin-top: 6px;
}

@media (max-width: 600px) {
    .dc-self-registration-form input[type="text"],
    .dc-self-registration-form input[type="email"],
    .dc-self-registration-form input[type="tel"],
    .dc-self-registration-form input[type="password"] {
        max-width: 90vw;
    }
}
