/**
 * PP License Manager — product page (options, summary, free download)
 */

.pp-lm-configurator {
    display: flex;
    flex-direction: column;
    gap: var(--gap-2_5);
}

[data-pp-cart-actions][hidden],
[data-pp-cart-extra-actions][hidden],
[data-pp-download-actions][hidden],
.pp-free-download-actions [hidden] {
    display: none !important;
}

.pp-free-download-modal {
    display: flex;
    flex-direction: column;
    gap: calc(3rem * var(--glob-50));
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.pp-free-download-modal__title.h3 {
    margin: 0;
}

.pp-free-download-modal .pp-free-download-modal__message {
    margin: 0;
    line-height: 1.5;
}

.pp-free-download-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.pp-free-download-modal__btn {
    min-width: 18rem;
}

.pp-free-download-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.pp-free-download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
    width: 100%;
}

.pp-free-download-meta__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #856404;
    font-size: 1.4rem;
    line-height: 1;
}

.pp-free-download-meta__pill i {
    font-size: 1.5rem;
}

.pp-free-download-icon {
    transform-origin: center;
}

.pp-free-download-icon.animate {
    will-change: transform;
}

.pp-license-form__options-title {
    margin: 0;
    font-size: calc(2rem * var(--glob-10));
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-2);
    line-height: 1.2;
}

.pp-license-form__options-title {
    margin-bottom: .8rem;
}

.pp-lm-configurator .ti-help-alt {
    font-size: 2.4rem;
    color: var(--color-orange);
    cursor: help;
}

.pp-lm-cart-info i {
    font-size: 2.4rem;
}

.pp-lm-cart-info {
    padding: 1rem 1.4rem;
    font-size: 1.5rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff3cd;
    border-left: 0.4rem solid #ffc107;
    color: #856404;
}

.pp-lm-cart-info__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.pp-lm-cart-info__content {
    flex: 1;
}

.pp-lm-cart-info__content strong {
    color: #5a3e00;
}

.pp-lm-cart-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pp-lm-cart-summary__row {
    display: flex;
    gap: 0 0.6rem;
    align-items: baseline;
    flex-wrap: wrap;
    width: 100%;
}

.pp-lm-cart-summary__label {
    font-weight: 700;
}
.pp-lm-cart-summary__value {
    flex: 1;
    display: inline-flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pp-lm-cart-summary__product-title {
    min-width: 0;
    text-align: right;
}

.pp-lm-cart-summary__product-price {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}
.pp-lm-cart-summary__variant-item {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
}

.pp-lm-cart-summary__variant-item + .pp-lm-cart-summary__variant-item {
    margin-top: 0.25rem;
}

.pp-lm-cart-summary__row--total {
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    border-top: 2px dashed #ccc;
}

.pp-lm-cart-summary--empty {
    font-weight: 600;
}

.pp-option-tooltip {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
}

.pp-license-form__options {
    display: flex;
    flex-direction: column;
}

.pp-option-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.8rem 0.4rem;
    border-bottom: 2px dashed #ccc;
    line-height: 1.2;
}

.pp-option-row__label {
    font-size: 1.7rem;
    color: #333;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.pp-option-row__price {
    font-size: 1.6rem;
    color: #666;
    white-space: nowrap;
    flex: 1;
    text-align: right;
}

.pp-option-row__mode {
    font-size: 1.2rem;
    color: #888;
}

.pp-switch {
    position: relative;
    display: inline-block;
    width: 4.2rem;
    height: 2.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.pp-switch input.pp-option-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.pp-switch__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 2.4rem;
    transition: background-color 0.25s;
}

.pp-switch__slider::before {
    position: absolute;
    content: '';
    height: 1.8rem;
    width: 1.8rem;
    left: 0.3rem;
    bottom: 0.3rem;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.3);
}

.pp-switch input.pp-option-checkbox:checked + .pp-switch__slider {
    background-color: #2196F3;
}

.pp-switch input.pp-option-checkbox:checked + .pp-switch__slider::before {
    transform: translateX(1.8rem);
}
