.etsp-ticket-outer {
    width: 100%;
}

.etsp-ticket-card {
    width: 100%;
    overflow: hidden;
    transition: all .25s ease;
}

.etsp-ticket-card-inner {
    --etsp-elements-gap: 14px;
    display: flex;
    flex-direction: column;
    gap: var(--etsp-elements-gap);
}

.etsp-ticket-product-name,
.etsp-ticket-top-text,
.etsp-ticket-minimum-text,
.etsp-ticket-price {
    margin: 0;
}

.etsp-ticket-top-text {
    text-transform: uppercase;
    line-height: 1.4;
}

.etsp-ticket-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.etsp-ticket-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    width: 48px;
    height: 48px;
    border: 1px solid currentColor;
    border-radius: 999px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
    box-sizing: border-box;
}

.etsp-ticket-qty-btn:disabled {
    cursor: not-allowed;
}

.etsp-ticket-qty-number {
    display: inline-block;
    min-width: 48px;
    text-align: center;
    line-height: 1;
    font-weight: 700;
}

.etsp-ticket-price .woocommerce-Price-amount,
.etsp-ticket-price bdi {
    font: inherit;
    color: inherit;
}

.etsp-ticket-form {
    margin: 0;
}

.etsp-ticket-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
}

.etsp-ticket-submit.is-loading {
    opacity: .7;
    pointer-events: none;
}

.etsp-ticket-notice {
    display: none;
    line-height: 1.4;
}

.etsp-ticket-notice.is-visible {
    display: block;
}

@media (max-width: 767px) {
    .etsp-ticket-qty-wrap {
        gap: 14px;
    }
}


/* Ticket Progress widget */
.etsp-progress-card {
    width: 100%;
    box-sizing: border-box;
}

.etsp-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.etsp-progress-title,
.etsp-progress-value,
.etsp-progress-subtitle,
.etsp-progress-empty {
    line-height: 1.4;
}

.etsp-progress-title {
    font-weight: 500;
}

.etsp-progress-value {
    font-weight: 700;
    white-space: nowrap;
}

.etsp-progress-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.etsp-progress-fill {
    height: 100%;
    transition: width .3s ease;
}

.etsp-progress-subtitle {
    margin-top: 0;
}

.etsp-progress-empty {
    padding: 18px;
}

@media (max-width: 767px) {
    .etsp-progress-header {
        gap: 12px;
    }
}


/* =========================================
   Membership Goal Widget
   ========================================= */

.etsp-mg-card {
    width: 100%;
    box-sizing: border-box;
}

/* Header row */
.etsp-mg-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Icon */
.etsp-mg-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}

.etsp-mg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.etsp-mg-icon svg,
.etsp-mg-icon i {
    display: block;
}

/* Info block */
.etsp-mg-info {
    flex: 1;
    min-width: 0;
}

.etsp-mg-label {
    line-height: 1.3;
    margin-bottom: 2px;
}

.etsp-mg-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

.etsp-mg-current,
.etsp-mg-separator,
.etsp-mg-goal-val {
    line-height: inherit;
}

/* Badge */
.etsp-mg-badge-wrap {
    flex-shrink: 0;
    margin-left: auto;
}

.etsp-mg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-weight: 600;
    line-height: 1.3;
}

.etsp-mg-badge-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Progress bar */
.etsp-mg-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.etsp-mg-fill {
    height: 100%;
    transition: width .4s ease;
}

/* Bottom row */
.etsp-mg-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.etsp-mg-bottom-left {
    flex-shrink: 0;
}

.etsp-mg-bottom-right {
    text-align: right;
}

@media (max-width: 600px) {
    .etsp-mg-header {
        flex-wrap: wrap;
    }

    .etsp-mg-badge-wrap {
        width: 100%;
        margin-left: 0;
    }

    .etsp-mg-bottom {
        flex-direction: column;
        gap: 4px;
    }

    .etsp-mg-bottom-right {
        text-align: left;
    }
}
