.pdss-widget {
    --pdss-accent: #4f6df5;
    --pdss-accent-dark: #3f5ce8;
    --pdss-text: #1d2433;
    --pdss-muted: #6f7785;
    --pdss-border: #d7dce5;
    --pdss-soft: #f5f7fb;
    --pdss-panel: #ffffff;
    width: 100%;
    color: var(--pdss-text);
    font-family: Inter, Arial, sans-serif;
}

.pdss-heading {
    margin: 0 0 28px;
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0;
    color: #05070d;
}

.pdss-card {
    overflow: visible;
    border: 1px solid var(--pdss-border);
    border-radius: 8px;
    background: var(--pdss-panel);
}

.pdss-main {
    display: grid;
    grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
    min-height: 480px;
}

.pdss-card:not(.is-expanded) .pdss-main {
    display: block;
    min-height: auto;
}

.pdss-media {
    min-height: 100%;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    background: var(--pdss-soft);
}

.pdss-card:not(.is-expanded) .pdss-media {
    display: none;
}

.pdss-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center;
}

.pdss-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 24px 16px;
}

.pdss-card:not(.is-expanded) .pdss-content {
    padding: 28px 30px 24px;
}

.pdss-summary {
    position: relative;
}

.pdss-title {
    margin: 0 0 14px;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: 0;
    color: #111827;
}

.pdss-intro {
    max-width: 900px;
    padding-right: 140px;
    font-size: 16px;
    line-height: 1.58;
    color: #4c5565;
}

.pdss-card:not(.is-expanded) .pdss-intro {
    max-width: 980px;
    padding-right: 0;
}

.pdss-intro p {
    margin: 0 0 10px;
}

.pdss-intro p:last-child {
    margin-bottom: 0;
}

.pdss-read-more {
    position: absolute;
    right: 0;
    bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 4px;
    box-shadow: none !important;
}

.pdss-read-more svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.pdss-card.is-expanded .pdss-read-more svg {
    transform: rotate(180deg);
}

.pdss-details[hidden],
.pdss-plan-panel[hidden],
.pdss-device-list[hidden] {
    display: none !important;
}

.pdss-why {
    margin: 4px 0 18px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: #4b5565;
}

.pdss-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.pdss-benefit-heading {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    color: var(--pdss-accent);
}

.pdss-benefit-card--risk + .pdss-benefit-card--risk,
.pdss-benefit-column:nth-child(2) .pdss-benefit-heading {
    color: #737b88;
}

.pdss-benefit-list {
    display: grid;
    gap: 18px;
}

.pdss-benefit-card {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 24px;
    border: 1px solid #e3e6ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 13px rgba(15, 23, 42, .11);
    text-align: center;
}

.pdss-benefit-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pdss-accent);
}

.pdss-benefit-icon svg,
.pdss-benefit-icon i {
    width: 28px;
    height: 28px;
    font-size: 26px;
}

.pdss-benefit-card h5 {
    margin: 0;
    font-size: 13px;
    line-height: 1.28;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #4b5565;
}

.pdss-benefit-card p {
    margin: 0;
    max-width: 330px;
    font-size: 15px;
    line-height: 1.45;
    color: #4e5867;
}

.pdss-plan-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    margin-top: auto;
    border: 1px solid var(--pdss-accent) !important;
    border-radius: 6px !important;
    padding: 0 20px !important;
    background: var(--pdss-accent) !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none !important;
}

.pdss-plan-toggle:hover {
    background: var(--pdss-accent-dark) !important;
    border-color: var(--pdss-accent-dark) !important;
}

.pdss-plan-toggle svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.pdss-plan-panel {
    margin: 0 16px 20px;
    padding: 18px 18px 24px;
    border: 1px solid #dfe3eb;
    border-radius: 0 0 8px 8px;
    background: #fff;
}

.pdss-card.is-expanded .pdss-plan-panel {
    margin-left: calc(34% + 16px);
}

.pdss-plan-fields {
    display: grid;
    grid-template-columns: minmax(210px, 1.3fr) minmax(180px, 1fr) minmax(180px, 1fr) auto 42px;
    align-items: start;
    gap: 14px;
}

.pdss-device-field,
.pdss-term-field,
.pdss-license-input {
    min-height: 42px;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #fff;
}

.pdss-device-field {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 36px;
    align-items: center;
}

.pdss-device-field.is-open {
    border-color: var(--pdss-accent);
    box-shadow: 0 0 0 2px rgba(79, 109, 245, .11);
}

.pdss-device-arrow {
    width: 34px;
    height: 40px;
    border: 0 !important;
    border-radius: 8px 0 0 8px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #7a8391 !important;
    box-shadow: none !important;
}

.pdss-device-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.pdss-device-field.is-open .pdss-device-arrow svg {
    transform: rotate(180deg);
}

.pdss-device-input,
.pdss-license-input,
.pdss-term-select {
    width: 100%;
    height: 40px;
    border: 0 !important;
    outline: none !important;
    padding: 0 10px !important;
    background: transparent !important;
    color: #374151;
    font-size: 14px;
    line-height: 40px;
    box-shadow: none !important;
}

.pdss-device-input::placeholder,
.pdss-license-input::placeholder {
    color: #6f7785;
    font-size: 12px;
    line-height: 40px;
    opacity: 1;
}

.pdss-term-select.is-placeholder {
    color: #6f7785;
    font-size: 12px;
}

.pdss-device-input {
    min-width: 0;
    text-overflow: ellipsis;
}

.pdss-license-input {
    padding: 0 14px !important;
    border: 1px solid #d9dee8 !important;
}

.pdss-search-icon {
    width: 36px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8c94a3;
}

.pdss-search-icon svg {
    width: 20px;
    height: 20px;
}

.pdss-device-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 12;
    width: 100%;
    max-height: 264px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #d7dce5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

.pdss-device-option {
    width: 100%;
    min-height: 34px;
    display: block;
    border: 0 !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
    overflow: hidden;
    background: transparent !important;
    color: #111827 !important;
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: none !important;
}

.pdss-device-option:hover,
.pdss-device-option:focus {
    background: #eef2ff !important;
    color: var(--pdss-accent) !important;
}

.pdss-device-empty {
    display: block;
    padding: 8px;
    color: var(--pdss-muted);
    font-size: 14px;
}

.pdss-term-select {
    appearance: auto;
    -webkit-appearance: auto;
}

.pdss-price {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--pdss-accent);
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.pdss-cart-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    background: var(--pdss-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.pdss-cart-button svg {
    width: 27px;
    height: 27px;
}

.pdss-cart-button:disabled {
    background: #aeb5c1 !important;
    cursor: not-allowed;
    opacity: .8;
}

.pdss-message {
    min-height: 20px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--pdss-muted);
}

.pdss-message.is-error {
    color: #bf2f29;
}

.pdss-message.is-success {
    color: #4d7d42;
}

.pdss-widget.is-adding .pdss-cart-button {
    position: relative;
    color: transparent !important;
}

.pdss-widget.is-adding .pdss-cart-button::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pdssSpin .75s linear infinite;
}

@keyframes pdssSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1200px) {
    .pdss-main {
        grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
    }

    .pdss-card.is-expanded .pdss-plan-panel {
        margin-left: calc(36% + 16px);
    }

    .pdss-plan-fields {
        grid-template-columns: minmax(210px, 1fr) minmax(160px, .8fr) minmax(170px, .8fr) auto 42px;
    }
}

@media (max-width: 1024px) {
    .pdss-main {
        grid-template-columns: 1fr;
    }

    .pdss-media {
        border-radius: 8px 8px 0 0;
        max-height: 440px;
    }

    .pdss-media img {
        min-height: 360px;
        max-height: 440px;
    }

    .pdss-card.is-expanded .pdss-plan-panel {
        margin-left: 16px;
    }

    .pdss-benefit-grid {
        gap: 20px;
    }

    .pdss-plan-fields {
        grid-template-columns: 1fr 1fr;
    }

    .pdss-price {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .pdss-heading {
        margin-bottom: 20px;
        font-size: 30px;
    }

    .pdss-card,
    .pdss-media {
        border-radius: 8px;
    }

    .pdss-content,
    .pdss-card:not(.is-expanded) .pdss-content {
        padding: 20px 16px 16px;
    }

    .pdss-title {
        font-size: 24px;
    }

    .pdss-intro {
        padding-right: 0;
        font-size: 15px;
    }

    .pdss-read-more {
        position: static;
        margin-top: 12px;
    }

    .pdss-benefit-grid {
        grid-template-columns: 1fr;
    }

    .pdss-benefit-heading {
        font-size: 20px;
    }

    .pdss-benefit-card {
        min-height: 142px;
        padding: 18px 16px;
    }

    .pdss-plan-toggle {
        min-height: 50px;
        font-size: 15px;
    }

    .pdss-plan-panel,
    .pdss-card.is-expanded .pdss-plan-panel {
        margin: 0 10px 14px;
        padding: 14px 12px 18px;
    }

    .pdss-plan-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pdss-cart-button {
        width: 100%;
        min-width: 100%;
    }

    .pdss-device-list {
        max-height: 230px;
    }
}
