.iws-cart-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 999px; /* pill shape */

    padding: 6px 12px;
    cursor: pointer;

    font-size: 14px;
    font-weight: 500;
    color: #1d2327;

    transition: all 0.15s ease-in-out;
}

.iws-cart-badge:hover {
    background: #f6f7f7;
    border-color: #2271b1;
}

.iws-cart-icon {
    font-size: 18px;
    color: #2271b1;
}

.iws-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;

    background: #d63638; /* WP danger red */
    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    border-radius: 50%;
    line-height: 1;
}

.iws-cart-total {
    white-space: nowrap;
}


.iws-cart-badge--compact {
    padding: 6px 8px;
}

.iws-cart-badge--compact .iws-cart-total {
    display: none;
}


.iws-cart-badge--empty {
    opacity: 0.6;
}

.iws-cart-empty-text {
    font-size: 13px;
}

.iws-product-group-breadcrumb {
    font-size: 0.8em;
}

.iws-product-title {
    font-size: 1.1em;
    font-weight: bold;
}


.iws-tab-content {
    display: none;
}

.iws-tab-content.active {
    display: block;
}

.iws-tab-header {
    cursor: pointer;
    padding: 10px;
    background: #eee;
    margin-bottom: 5px;
}

.iws-tab-header.active {
    background: #ddd;
    font-weight: bold;
}

.iws-tab-content {
    display: none;
}

.iws-tab-content.active {
    display: block;
}

.iws-tab-header {
    cursor: pointer;
    padding: 10px;
    background: #eee;
    margin-bottom: 5px;
}

.iws-tab-header.active {
    background: #ddd;
    font-weight: bold;
}


.iws-word-wrap {
    overflow-wrap: break-word;
}

.iws-keep-linebreaks {
    white-space: pre-line;
}


.iws-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0.8rem;
    align-items: center;
}

.iws-cart-buttons {
    margin-top: 10px;
}

.iws-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;



    flex: 0 0 auto;
    padding: 12px 16px;

    font-size: 14px;
    font-weight: 600;

    border: none;
    border-radius: 8px;

    cursor: pointer;
    transition: all 0.2s ease;

}

/* Hover */
.iws-button:hover {
    background: #005f8d;
    transform: translateY(-1px);
}

/* Aktív */
.iws-button:active {
    transform: translateY(0);
    opacity: 0.9;
}

/* Fokusz (accessibility) */
.iws-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.4);
}

/* Disabled állapot */
.iws-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}


.iws-role-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 20px;
    margin-top: 20px;
}

.iws-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.iws-card-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
}

.iws-card-body {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iws-cap-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    word-break: break-word;
}

.iws-hidden{
    display: none;
}

.iws-collapse{
    visibility: collapse;
}

.iws-table {

}

.iws-table-align-middle {

}

.iws-table-align-middle td {
    vertical-align: middle;
}

.iws-container {
    width: 100%;
    margin: 0 auto;
    align-content: start;
}

.iws-align-left {
    margin-left: 0;
    margin-right: auto;
}


.iws-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin: 0.4em;
}


.iws-price.iws-is-inactive {
    color: #888;
    font-weight: 400;
    text-decoration: line-through;
}

.iws-is-promo {
    color: red;
}

.iws-is-inactive:after {
    content: " Inaktív ár, érdeklődjön!";
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #fff3cd;
    color: #856404;
    font-size: .75rem;
    font-weight: 600;
}

.iws-price-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #f5f5f5;
    color: #666;
    font-size: 0.75rem;
}

.iws-product-group-breadcrumb {
    margin: 15px 0;
    font-size: 14px;
}

.iws-product-group-breadcrumb p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.iws-product-group-breadcrumb a {
    color: #555;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.iws-product-group-breadcrumb a:hover {
    background: #f5f5f5;
    color: #0073aa;
}

.iws-product-group-breadcrumb .separator {
    color: #999;
    font-size: 16px;
}

.iws-cart-quantity {
    width: 5rem;
    font-size: 1rem;
}


.iws-cart-quantity-label {
    font-size: 1rem;
    white-space: nowrap;
}

.iws-remove-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 0;
}

.iws-remove-item .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}


.iws-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.iws-form.iws-hidden{
    display: none;
}

.iws-form .iws-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.iws-form .iws-form-group + .iws-form-group {
    margin-top: 10px;
}

.iws-form label {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
}

.iws-form .iws-checkbox-group, .iws-form .iws-tax-number-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.iws-form .iws-tax-number-group input {
    width: auto;
}


.iws-form input[type="checkbox"] {
    width: 24px;
    height: 24px;
}

.iws-form input[type="text"],
.iws-form input[type="email"],
.iws-form input[type="tel"],
.iws-form input[type="number"],
.iws-form input[type="password"],
.iws-form select,
.iws-form textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 10px 12px;

    font-size: 15px;
    line-height: 1.4;

    color: #1e1e1e;
    background: #fff;

    border: 1px solid #949494;
    border-radius: 4px;

    outline: none;

    transition:
            border-color 0.15s ease,
            box-shadow 0.15s ease;
}

.iws-form input:focus,
.iws-form select:focus,
.iws-form textarea:focus {
    border-color: #3858e9;
    box-shadow: 0 0 0 1px #3858e9;
}

.iws-form input:disabled,
.iws-form select:disabled,
.iws-form textarea:disabled {
    background: #f0f0f0;
    color: #757575;
    cursor: not-allowed;
}
.iws-form .iws-form-group:has(input:required) > label::after,
.iws-form .iws-form-group:has(textarea:required) > label::after,
.iws-form .iws-form-group:has(select:required) > label::after {
    content: ' *';
    color: red;
}

.iws-form textarea {
    min-height: 100px;
    resize: vertical;
}

.iws-form .description {
    font-size: 12px;
    color: #757575;
}

.iws-form .error input,
.iws-form .error select,
.iws-form .error textarea {
    border-color: #cc1818;
}

.iws-form .error-message {
    font-size: 12px;
    color: #cc1818;
}

.iws-error-message{
    display: none;
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-left:1.5rem;
}

.iws-form .iws-form-group > .wp-element-button {
    align-self: flex-start;
    width: fit-content;
}

.iws-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.iws-table th,
.iws-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.iws-table .iws-number {
    text-align: right;
}

.iws-table th {
    font-weight: 600;
    background: #f1f1f1;
}

.iws-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}

.iws-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.iws-table tbody tr:hover {
    background: #eeeeee;
}
.iws-table .iws-total{
    font-weight: bold;
    background-color: white !important;
    height: 4rem !important;
    vertical-align: bottom;
}

.iws-table .iws-total td{
    border-top: 2px solid gray !important;
    vertical-align: middle;
    height: 2rem !important;
}