/* Product samples — product page buttons */

.aoh-sample-wrap {
    margin-top: 1.5em;
}

/* Neutralise the theme's `white-space: pre-wrap` on .btn so source
   whitespace/newlines don't throw off the button padding. */
.aoh-sample-wrap .btn {
    white-space: normal;
}

/* Green check shown in the button's "added" state. */
.aoh-sample-check {
    color: #2e7d32;
}

/* "Fjern" remove control: a plain text button (not a .btn) — gray with a
   circular-bordered ✕, both turning red on hover. */
.aoh-sample-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 0.9em;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.aoh-sample-remove .aoh-remove-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    font-size: 0.8em;
    line-height: 1;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.aoh-sample-remove:hover,
.aoh-sample-remove:focus {
    color: #c0392b;
}

.aoh-sample-remove:hover .aoh-remove-icon,
.aoh-sample-remove:focus .aoh-remove-icon {
    border-color: #c0392b;
    color: #c0392b;
}

/* Loading spinner appended to whichever button is mid-request. Uses
   currentColor so it matches the button's text colour. */
.aoh-sample-wrap .aoh-loading::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: aoh-spin 0.6s linear infinite;
}

/* Product samples — cart line item list */

.aoh-sample-list {
    display: block;
    margin-top: 0.5em;
    line-height: 1.7;
}

.aoh-sample-item {
    display: block;
}

/* Deletion in progress: gray out the line and show a spinner */
.aoh-sample-item.aoh-removing {
    opacity: 0.5;
    pointer-events: none;
}

.aoh-sample-item.aoh-removing::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 8px;
    border: 2px solid #ccc;
    border-top-color: #555;
    border-radius: 50%;
    vertical-align: middle;
    animation: aoh-spin 0.6s linear infinite;
}

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

/* Round "remove" (✕) button after each sample */
.aoh-remove-sample-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    margin-left: 6px;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    background-color: transparent;
    color: #555;
    font-size: 0.8em;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.aoh-remove-sample-item:hover,
.aoh-remove-sample-item:focus {
    border-color: #c0392b;
    background-color: #c0392b;
    color: #fff !important;
    text-decoration: none;
}

/* Product samples — container product page overview */

.aoh-samples-overview {
    margin-top: 1em;
    margin-bottom: 1em;
}

.aoh-samples-heading {
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

.aoh-samples-overview .aoh-sample-list {
    margin-top: 0;
}

.aoh-samples-price {
    margin-top: 1em;
    font-weight: 500;
}

.aoh-samples-empty {
    margin-bottom: 0.5em;
}
