.ttcfg {
    position: relative;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    display: grid;
    gap: 1rem;
}

.ttcfg__content {
    display: grid;
    gap: 1rem;
}

.ttcfg.is-loading {
    min-height: 320px;
}

.ttcfg.is-loading .ttcfg__content {
    visibility: hidden;
}

.ttcfg__loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(1px);
}

.ttcfg.is-loading .ttcfg__loading {
    display: flex;
}

.ttcfg__loading-spinner {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 3px solid #d7ccbb;
    border-top-color: #1e4c40;
    animation: ttcfg-spin 0.85s linear infinite;
}

.ttcfg__loading-text {
    font-size: 0.9rem;
    color: #5c564d;
}

@keyframes ttcfg-spin {
    to {
        transform: rotate(360deg);
    }
}

.ttcfg__header,
.ttcfg__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ttcfg__title {
    margin: 0;
    font-size: 1.25rem;
}

.ttcfg__intro,
.ttcfg__group-header p,
.ttcfg__summary-content,
.ttcfg__messages {
    margin: 0;
    color: #5c564d;
}

.ttcfg__price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e4c40;
    white-space: nowrap;
}

.ttcfg__price-block {
    display: grid;
    gap: 0.15rem;
    justify-items: end;
}

.ttcfg__price-stack {
    display: grid;
    justify-items: end;
    gap: 0.1rem;
}

.ttcfg__price-block--total {
    justify-items: start;
}

.ttcfg__checkout-inline {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.9rem;
}

.ttcfg__price-label {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6f675d;
}

.ttcfg__groups {
    display: grid;
    gap: 1rem;
}

.ttcfg__custom-fields-panel {
    margin-top: 1.25rem;
}

.ttcfg__group {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.ttcfg__group.is-hidden-by-rule,
.ttcfg__option.is-hidden-by-rule,
.ttcfg__select option.is-hidden-by-rule {
    display: none;
}

.ttcfg__group-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 992px) {
    .ttcfg header,
    .ttcfg__group-header {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        z-index: auto !important;
        background: transparent !important;
        display: flex !important;
    }
}

.ttcfg__required {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8c5b11;
}

.ttcfg__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ttcfg__property-group,
.ttcfg__property-row,
.ttcfg__property-child {
    display: grid;
    gap: 0.85rem;
}

.ttcfg__property-row {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: end;
    padding: 1rem;
    border: 1px solid #ddd7cb;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
}

.ttcfg__property-group--inline-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.ttcfg__property-group--inline-rows .ttcfg__property-row {
    align-self: start;
    height: 100%;
}

@media (max-width: 992px) {
    .ttcfg__property-group--inline-rows {
        grid-template-columns: 1fr;
    }
}

.ttcfg__property-row-title {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 1rem;
    color: #1e4c40;
}

.ttcfg__property-child-label {
    margin: 0;
    font-weight: 700;
    color: #2f2a24;
}

.ttcfg__option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #ddd7cb;
    border-radius: 12px;
    background: #fff;
}

.ttcfg__option > span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.ttcfg__option-head {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.ttcfg__value-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.ttcfg__option strong,
.ttcfg__option small,
.ttcfg__option em {
    white-space: nowrap;
}

.ttcfg__option small,
.ttcfg__option em {
    color: #5c564d;
    font-size: 0.85rem;
    font-style: normal;
}

.ttcfg__price-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #eef5ea;
    color: #2d6a39;
    font-size: 0.78rem;
    font-weight: 700;
}

.ttcfg__value-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: #2d6a39;
    cursor: help;
}

.ttcfg__value-tooltip .bi-info-circle-fill {
    font-size: 0.9rem;
    line-height: 1;
    position: relative;
    top: 2px;
}

.ttcfg__value-tooltip-text {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    display: none;
    min-width: 180px;
    max-width: 240px;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #d8e0d2;
    background: #f8fbf6;
    color: #2f2a24;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: normal;
    text-align: left;
    box-shadow: 0 6px 16px rgba(27, 50, 36, 0.16);
    z-index: 6;
}

.ttcfg__value-tooltip:hover .ttcfg__value-tooltip-text,
.ttcfg__value-tooltip:focus .ttcfg__value-tooltip-text,
.ttcfg__value-tooltip:focus-within .ttcfg__value-tooltip-text {
    display: block;
}

.ttcfg__select,
.ttcfg__free-input input,
.ttcfg__actions input {
    width: 100%;
    max-width: 320px;
    border: 1px solid #ccc4b5;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #fff;
}

.ttcfg__quantity-field {
    display: grid;
    gap: 0.35rem;
}

.ttcfg__quantity-field input {
    max-width: 120px;
}

.ttcfg__summary {
    border: 1px dashed #c8bda8;
    border-radius: 14px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
}

.ttcfg__summary-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    color: #8c5b11;
}

.ttcfg__summary-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

.ttcfg__summary-row {
    display: grid;
    gap: 0.15rem;
}

.ttcfg__summary-row dt {
    margin: 0;
    color: #6f675d;
    font-size: 0.78rem;
    font-weight: 700;
}

.ttcfg__summary-row dd {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    color: #2e2923;
}

.ttcfg__summary-row dd strong {
    white-space: nowrap;
    color: #1e4c40;
}

.ttcfg__summary-row--total {
    margin-top: 0.35rem;
    padding-top: 0.6rem;
    border-top: 1px solid #d9ceba;
}

.ttcfg__button {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    background: #1e4c40;
    color: #fff;
    font-weight: 700;
}

.ttcfg__toggle {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
}

.ttcfg__file-name {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #5c564d;
}

@media (max-width: 768px) {
    .ttcfg {
        min-height: 260px;
        padding: 0;
    }

    .ttcfg__checkout-inline {
        width: 100%;
        justify-content: space-between;
    }
}