/* Product Page Styles (Version 2 - Simple) */
.nymobil-calculator--product {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.nymobil-calculator--product .nymobil-section {
    margin-bottom: 20px;
}

.nymobil-calculator--product .nymobil-section--extra-users {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 20px;
}

.nymobil-calculator--product .nymobil-heading {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nymobil-calculator--product .nymobil-heading-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.nymobil-calculator--product .nymobil-subheading,
.h3-heading {
    font-size: 22px;
    font-weight: 600;
    color: #161616;
    margin: 0 0 12px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nymobil-calculator--product .nymobil-subheading-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.nymobil-calculator--product .nymobil-description {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.nymobil-calculator--product .nymobil-subscription-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nymobil-calculator--product .nymobil-option-card {
    background: #fff;
    border: 1px solid #a4a4a4;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
}

.nymobil-calculator--product .nymobil-option-card:hover:not(.nymobil-option-card--selected) {
    border-color: #999;
}

.nymobil-calculator--product .nymobil-option-card--selected {
    border: 2px solid #37BCF4;
}

.nymobil-calculator--product .nymobil-option-radio {
    margin: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #37BCF4;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: #fff;
    position: relative;
    padding-top: 0;
}

.nymobil-calculator--product .nymobil-option-radio:checked {
    border-color: #37BCF4;
    background: #37BCF4;
}

.nymobil-calculator--product .nymobil-option-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.nymobil-calculator--product .nymobil-option-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nymobil-calculator--product .nymobil-option-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.nymobil-calculator--product .nymobil-option-provider {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.nymobil-calculator--product .nymobil-option-provider-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.nymobil-calculator--product .nymobil-option-provider-name {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-transform: lowercase;
}

.nymobil-calculator--product .nymobil-option-plan-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.nymobil-calculator--product .nymobil-option-plan-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: right;
}

.nymobil-calculator--product .nymobil-option-price {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-align: right;
}

.nymobil-calculator--product .nymobil-option-features {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.nymobil-calculator--product .nymobil-option-card--selected .nymobil-option-features {
    display: flex;
}

.nymobil-calculator--product .nymobil-option-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.nymobil-calculator--product .nymobil-checkmark {
    flex-shrink: 0;
    margin-top: 2px;
}

.nymobil-calculator--product .nymobil-extra-users {
    border-radius: 4px;
}

.nymobil-calculator--product .nymobil-extra-users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.nymobil-calculator--product .nymobil-extra-users-header label {
    margin: 0;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.nymobil-calculator--product .nymobil-extra-users-note {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.nymobil-calculator--product .nymobil-quantity-selector {
    display: flex;
    height: 40px;
    align-items: center;
    gap: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 16px;
    background: #fff;
    padding: 24px 4px;
    overflow: hidden;
}

.nymobil-calculator--product .nymobil-quantity-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    width: 24px;
    height: 24px;
    transition: background-color 0.2s ease;
}

.nymobil-calculator--product .nymobil-quantity-btn:hover {
    background-color: #f5f5f5;
}

.nymobil-calculator--product .nymobil-quantity-btn:active {
    background-color: #e8e8e8;
}

.nymobil-calculator--product .nymobil-quantity-input {
    width: 80px;
    padding: 0;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    background: transparent;
    -moz-appearance: textfield;
}

.nymobil-calculator--product .nymobil-quantity-input::-webkit-outer-spin-button,
.nymobil-calculator--product .nymobil-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.nymobil-calculator--product .nymobil-quantity-input:focus {
    outline: none;
}

.nymobil-calculator--product .nymobil-number-input {
    width: 100%;
    max-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.nymobil-calculator--product .nymobil-number-input:focus {
    outline: none;
    border-color: #666;
}

.nymobil-calculator--product .nymobil-help-text {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 6px;
}

.nymobil-calculator--product .nymobil-total-section {
    background: #F5F5F5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 0px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.nymobil-calculator--product .nymobil-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.nymobil-calculator--product .nymobil-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nymobil-calculator--product .nymobil-breakdown-label {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

.nymobil-calculator--product .nymobil-breakdown-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.nymobil-calculator--product .nymobil-breakdown-unit {
    font-weight: 400;
}

.nymobil-calculator--product .nymobil-total-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 16px 0;
}

.nymobil-calculator--product .nymobil-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #333;
    margin-bottom: 12px;
}

.nymobil-calculator--product .nymobil-total-label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.nymobil-calculator--product .nymobil-total-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
    justify-content: center;
}

.nymobil-calculator--product .nymobil-total-price {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.nymobil-calculator--product .nymobil-total-unit {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.nymobil-calculator--product .nymobil-total-details {
    margin-top: 8px;
    text-align: center;
    color: #666;
}

.nymobil-calculator--product .nymobil-total-details small {
    font-size: 14px;
    color: #666;
}

.nymobil-calculator--product .nymobil-loading {
    text-align: center;
    padding: 12px;
    color: #666;
    font-size: 14px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-top: 12px;
}

.nymobil-calculator--product .nymobil-loading .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #666;
    border-radius: 50%;
    animation: nymobil-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

@media (max-width: 768px) {
    .nymobil-calculator--product {
        padding: 15px;
    }

    .nymobil-calculator--product .nymobil-option-card {
        padding: 12px;
        gap: 12px;
    }

    .nymobil-calculator--product .nymobil-option-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nymobil-calculator--product .nymobil-option-plan-info {
        align-items: flex-start;
    }

    .nymobil-calculator--product .nymobil-option-plan-name,
    .nymobil-calculator--product .nymobil-option-price {
        text-align: left;
    }

    .nymobil-calculator--product .nymobil-total-price {
        font-size: 20px;
    }
}

.single-product .nymobil-calculator--product {
    clear: both;
}

.single-product .nymobil-calculator--product+.cart {
    margin-top: 20px;
}

.nymobil-from-price {
    font-size: 14px;
    color: #666;
}

.nymobil-from-price .amount {
    font-weight: 600;
    color: #333;
}

/* Category Page Styles (Override for category layout) */
.nymobil-calculator--category {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.nymobil-calculator--category .nymobil-section {
    margin-bottom: 20px;
}

.nymobil-calculator--category .nymobil-section--subscriptions {
    margin-bottom: 65px;
}

.nymobil-calculator--category .nymobil-section--extras {
    margin-top: 10px;
}

.nymobil-calculator--category .nymobil-heading {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nymobil-calculator--category .nymobil-heading-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.nymobil-calculator--category .nymobil-subheading {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    margin: 0 0 12px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nymobil-calculator--category .nymobil-subheading-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.nymobil-calculator--category .nymobil-description {
    color: #666;
    font-size: 10px;
    margin: 0 0 15px 0;
}

.nymobil-calculator--category .nymobil-subscription-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
}

.nymobil-calculator--category .nymobil-option {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 1px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.nymobil-calculator--category .nymobil-option:hover {
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nymobil-calculator--category .nymobil-option.is-selected {
    border-color: #333;
    background: #f5f5f5;
}

.nymobil-calculator--category .nymobil-option-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.nymobil-calculator--category .nymobil-option-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.nymobil-calculator--category .nymobil-option-logo-wrap {
    display: flex;
    align-items: center;
}

.nymobil-calculator--category .nymobil-option-logo {
    max-height: 24px;
    width: auto;
}

.nymobil-calculator--category .nymobil-option-description {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    width: 100%;
}

.nymobil-calculator--category .nymobil-option-description span {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    color: #666;
}

.nymobil-calculator--category .nymobil-option-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.nymobil-calculator--category .nymobil-option-breakdown {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    line-height: 1.6;
    color: #444;
}

.nymobil-calculator--category .nymobil-option-installment,
.nymobil-calculator--category .nymobil-option-subscription {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nymobil-calculator--category .nymobil-installment-label,
.nymobil-calculator--category .nymobil-subscription-label {
    font-weight: 400;
    font-size: 10px;
    margin-bottom: 4px;
}

.nymobil-calculator--category .nymobil-installment-value,
.nymobil-calculator--category .nymobil-subscription-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.nymobil-calculator--category .nymobil-installment-unit,
.nymobil-calculator--category .nymobil-subscription-unit {
    font-size: 11px;
    color: #666;
}

.nymobil-calculator--category .nymobil-option-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

.nymobil-calculator--category .nymobil-select-button {
    width: 100%;
    padding: 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 1px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.nymobil-calculator--category .nymobil-select-button:hover {
    background: #555;
}

.nymobil-calculator--category .nymobil-extra-users {
    background: transparent;
    padding: 0;
    border: none;
    margin-top: 15px;
}

.nymobil-calculator--category .nymobil-extra-heading {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    margin: 0 0 12px 0;
}

.nymobil-calculator--category .nymobil-extra-users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.nymobil-calculator--category .nymobil-extra-users-header label {
    margin: 0;
    font-size: 11px;
}

.nymobil-calculator--category .nymobil-extra-users-note {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.nymobil-calculator--category .nymobil-number-input {
    font-size: 13px;
    padding: 6px 10px;
}

.nymobil-calculator--category .nymobil-help-text {
    font-size: 10px;
    margin-top: 4px;
}

.nymobil-subscription-options--category {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
}

.nymobil-category-product-image .wc-block-components-product-image,
.nymobil-category-product-image .wp-block-woocommerce-product-image {
    display: none !important;
}

.nymobil-category-product-image {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.nymobil-category-product-image .wp-block-woocommerce-product-price,
.nymobil-category-product-image .wp-block-woocommerce-product-button {
    margin-top: 10px;
}

.nymobil-category-product-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 30px !important;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100% !important;
}

.nymobil-category-product-image {
    flex: 0 0 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.nymobil-category-product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.nymobil-category-product-calculator {
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
}

@media (max-width: 768px) {
    .nymobil-category-product-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .nymobil-category-product-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .nymobil-subscription-options--category {
        grid-template-columns: 1fr;
    }
}

.nymobil-section.nymobil-section-number,
.nymobil-quantity-selector,
.nymobil-section.nymobil-section--personal-info,
.nymobil-total-section {
    border: 1px solid #A4A4A4 !important;
}

.summary.entry-summary.entry-summary-items p.price span.nymobil-from-price {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.summary.entry-summary.entry-summary-items p.price span.nymobil-from-price {
    padding-top: 50px !important;
    display: block;
}

.ct-product-add-to-cart .ct-cart-actions {
    align-items: baseline;
}

div#nymobil-calculator+script+.ct-cart-actions .quantity {
    display: none;
}