.hec-tc {
    --tc-accent: var(--hec-header-accent, #cf3417);
    box-sizing: border-box;
    width: min(1040px, calc(100% - 32px));
    max-width: calc(100vw - 32px);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    max-height: 90vh;
    max-height: 90dvh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: #202723;
    box-shadow: 0 24px 90px #0005;
    font: 400 16px/1.5 var(--hec-font-body, Arial, sans-serif)
}

.hec-tc:not([open]) {
    display: none
}

.hec-tc *,
.hec-tc *::before,
.hec-tc *::after {
    box-sizing: border-box
}

.hec-tc::backdrop {
    background: rgba(15, 24, 20, .72);
    backdrop-filter: blur(4px)
}

.hec-tc .hec-tc__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px 24px;
    border-bottom: 1px solid #e1e6e2
}

.hec-tc .hec-tc__eyebrow {
    margin: 0 0 6px;
    color: var(--tc-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em
}

.hec-tc h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700
}

.hec-tc__header p:last-child {
    margin: 8px 0 0;
    color: #58645d
}

.hec-tc .hec-tc__close {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d8dfda;
    border-radius: 50%;
    color: #ffffff;
    background: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    background: #d73516 !important;
}

.hec-tc .hec-tc__close:hover {
    background: #2c2b26 !important;
}

.hec-tc__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 32px;
    padding: 28px 32px
}

.hec-tc fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 26px;
    min-width: 0
}

.hec-tc legend {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    padding: 0
}

.hec-tc__hint {
    font-size: 14px;
    color: #59655d;
    margin: 6px 0 16px
}

.hec-tc__option {
    border: 1px solid #dbe2dc;
    border-radius: 12px;
    margin: 10px 0;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.hec-tc__option.is-selected {
    border-color: #91b99a;
    background: #edf7ee
}

.hec-tc .hec-tc__option input[type=checkbox] {
    accent-color: #377847;
}

.hec-tc .hec-tc__option :focus-visible {
    outline-color: #377847;
}

.hec-tc__choice {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer
}

.hec-tc input[type=checkbox] {
    width: 20px;
    height: 20px;
    flex: none;
    accent-color: var(--tc-accent);
    margin: 0
}

.hec-tc__choice strong {
    display: block;
    font-size: 16px
}

.hec-tc small {
    display: block;
    color: #59655d;
    font-size: 14px
}

.hec-tc__quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px
}

.hec-tc [hidden] {
    display: none !important
}

.hec-tc .hec-tc__quantity input {
    width: 76px;
    padding: 8px
}

.hec-tc__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px
}

.hec-tc__fields label {
    font-weight: 500;
    font-size: 14px
}

.hec-tc__wide {
    grid-column: 1/-1
}

.hec-tc__fields label>span {
    color: #59655d
}

.hec-tc input:not([type=checkbox]):not([type=hidden]),
.hec-tc textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    background: #fff;
    border: 1px solid #bdc8c0;
    border-radius: 8px;
    padding: 10px 12px;
    color: #202723;
    font: inherit;
    font-size: 16px;
    margin-top: 6px
}

.hec-tc textarea {
    resize: vertical
}

.hec-tc :focus-visible {
    outline: 3px solid var(--tc-accent);
    outline-offset: 3px
}

.hec-tc__summary {
    align-self: start;
    position: sticky;
    top: 16px;
    padding: 22px;
    background: #f3f6f3;
    border: 1px solid #e0e6e0;
    border-radius: 14px
}

.hec-tc h3 {
    font-size: 21px;
    margin: 0 0 18px
}

.hec-tc__line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    margin: 12px 0
}

.hec-tc__line strong {
    white-space: nowrap;
    font-weight: 500
}

.hec-tc__total {
    border-top: 1px solid #cbd5cd;
    margin-top: 20px;
    padding-top: 16px
}

.hec-tc__total>span {
    font-weight: 500
}

.hec-tc__total strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere
}

.hec-tc__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin: 20px 0
}

.hec-tc a {
    color: #a92b13;
    text-decoration: underline
}

.hec-tc .hec-tc__submit {
    width: 100%;
    min-height: 50px;
    padding: 12px;
    border: 0;
    border-radius: 28px;
    background: var(--tc-accent);
    color: #fff;
    font: 700 16px/1.3 var(--hec-font-body, Arial, sans-serif);
    cursor: pointer
}

.hec-tc .hec-tc__submit:hover,
.hec-tc .hec-tc__submit:focus {
    background: #2c2b26 !important;
}

.hec-tc__submit:disabled {
    opacity: .7;
    cursor: default
}

.hec-tc__status:not(:empty) {
    padding: 12px;
    border-radius: 8px;
    background: #e1efdf;
    color: #244c2b;
    font-size: 14px
}

.hec-tc__status.is-error {
    background: #fbe5df;
    color: #842810
}

.hec-tc__info {
    border-top: 1px solid #dbe2dc;
    padding-top: 16px;
    font-size: 14px
}

.hec-tc__info summary {
    cursor: pointer;
    font-weight: 700
}

.hec-tc__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    clip: rect(0, 0, 0, 0);
    overflow: hidden
}

/* Grid/flex items must be able to shrink, including Safari date inputs. */
.hec-tc__header > div,
.hec-tc__layout > *,
.hec-tc__fields > *,
.hec-tc__choice,
.hec-tc__choice > span,
.hec-tc__consent > span {
    min-width: 0;
}

.hec-tc input[type=date] {
    appearance: none;
    -webkit-appearance: none;
}

@media(max-width:900px) {
    .hec-tc {
        width: calc(100% - 16px);
        max-width: calc(100vw - 16px);
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 14px
    }

    .hec-tc .hec-tc__header {
        padding: 20px
    }

    .hec-tc h2 {
        font-size: 25px
    }

    .hec-tc__layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
        gap: 12px
    }

    .hec-tc__summary {
        position: static
    }

    .hec-tc__fields {
        grid-template-columns: minmax(0, 1fr)
    }

    .hec-tc__quantity {
        margin-left: 32px
    }

    .hec-tc__total strong {
        font-size: 30px
    }
}

/* Shortcode trigger: reference artwork, independent of the site's red buttons. */
button.hec-tc-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 52px;
    border: 2px solid #2c2b26;
    border-radius: 999px;
    background: #2c2b26;
    color: #fff;
    font-family: var(--hec-font-body, Arial, sans-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

button.hec-tc-trigger .hec-tc-trigger__icon {
    display: block;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

button.hec-tc-trigger:hover,
button.hec-tc-trigger:focus {
    background: #3b3a34;
    border-color: #3b3a34;
    color: #fff;
}

button.hec-tc-trigger:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #2c2b26;
}

@media (max-width: 480px) {
    button.hec-tc-trigger {
        gap: 12px;
        min-height: 60px;
        padding: 14px 22px;
        font-size: 16px;
    }

    button.hec-tc-trigger .hec-tc-trigger__icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    button.hec-tc-trigger {
        transition: none;
    }
}
/* One floating shortcut, outside Elementor's transformed containers. */
.hec-tc-floating {
    position: fixed;
    left: max(20px, env(safe-area-inset-left));
    bottom: calc(var(--hec-tc-floating-bottom, 20px) + env(safe-area-inset-bottom, 0px));
    z-index: 8999;
    max-width: calc(100% - 40px);
}
.hec-tc-floating[hidden] { display: none !important; }
.hec-tc-floating button.hec-tc-trigger {
    padding: 12px 24px;
    box-shadow: 0 6px 24px #0004;
}
@media (max-width: 767px) {
    .hec-tc-floating {
        left: max(15px, env(safe-area-inset-left));
        right: max(15px, env(safe-area-inset-right));
        max-width: none;
    }
    .hec-tc-floating button.hec-tc-trigger {
        width: 100%;
        min-height: 52px;
        padding: 12px 18px;
        gap: 12px;
        font-size: 14px;
    }
    .hec-tc-floating button.hec-tc-trigger .hec-tc-trigger__icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }
}

/* Matched mobile actions: equal columns, one baseline, safe-area spacing. */
@media (max-width: 767px) {
    body.hec-tc-paired-actions {
        --hec-action-left: max(12px, env(safe-area-inset-left, 0px));
        --hec-action-right: max(12px, env(safe-area-inset-right, 0px));
        --hec-action-width: calc((100% - var(--hec-action-left) - var(--hec-action-right) - 8px) / 2);
        --hec-action-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    .hec-tc-paired-actions .hec-tc-floating {
        left: var(--hec-action-left);
        right: auto;
        bottom: var(--hec-action-bottom);
        width: var(--hec-action-width);
        max-width: none;
    }
    .hec-tc-paired-actions .hec-tc-floating button.hec-tc-trigger,
    .hec-tc-paired-actions #hec-rent-trigger {
        box-sizing: border-box;
        height: 64px;
        min-height: 64px;
        padding: 8px 10px;
        gap: 6px;
        justify-content: center;
        border-radius: 32px;
        font-size: 12px;
        line-height: 1.2;
    }
    .hec-tc-paired-actions #hec-rent-trigger {
        top: auto;
        right: var(--hec-action-right);
        bottom: var(--hec-action-bottom);
        width: var(--hec-action-width);
        transform: none;
    }
    .hec-tc-paired-actions .hec-tc-floating button.hec-tc-trigger span {
        min-width: 0;
        text-align: left;
        white-space: normal;
    }
    .hec-tc-paired-actions .hec-tc-floating button.hec-tc-trigger .hec-tc-trigger__icon {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
    }
    .hec-tc-paired-actions #hec-rent-trigger .hec-rent-trigger__icon {
        flex: 0 0 30px;
        width: 30px;
    }
    .hec-tc-paired-actions #hec-rent-trigger .hec-rent-trigger__icon img {
        display: block;
        width: 30px;
        height: 30px;
        object-fit: contain;
    }
    .hec-tc-paired-actions #hec-rent-trigger .hec-rent-trigger__text {
        min-width: 0;
        font-size: 12px;
        line-height: 1.2;
        white-space: normal;
    }
}

.hec-tc__included {
    flex: 0 0 100%;
    min-width: 0;
    padding-left: 32px;
    color: #59655d;
    font-size: 14px;
    line-height: 1.5;
}
.hec-tc__included p { margin: 0 0 4px; font-weight: 700; }
.hec-tc__included ul { margin: 0; padding-left: 18px; list-style: disc; }
.hec-tc__included li { margin: 0; }
