.whois-container {
    max-width: var(--search-group-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.whois-title {
    font-weight: 600;
}

.whois-description {
    font-size: 16px;
    color: #000;
}

/* Search Box */
.whois-search-box {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #F2821B;
    border-radius: 10px;
    padding: 0 8px;
    min-height: 72px;
}

.search-group-btn {
    display: flex;
    align-items: center;
}

.search-group-btn .btn {
    transition: all 0.3s ease;
    opacity: 1;
}

.search-group-btn .btn.hiding {
    opacity: 0;
    transform: scale(0.95);
}

.search-group-btn .btn.showing {
    opacity: 1;
    transform: scale(1);
}

.whois-input-wrapper {
    flex: 1;
    padding: 0 24px;
}

.whois-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 1.5;
    color: #17191C;
    background: transparent;
    height: 100%;
    resize: none;
    align-content: center;
}

.whois-input::placeholder {
    color: #979BA4;
}

/* Error message */
.whois-search-wrapper.has-error .whois-search-box {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

/* Results Container */
#DomainSearchResults {
    max-width: var(--search-group-max-width);
    margin: 0 auto;
}

.domain-checker-result-headline {
    margin-bottom: var(--ca-section-header-margin-bottom);
}

/* Message Components */
.message {
    max-width: var(--search-group-max-width);
    margin: 0 auto;
}

.domain-checker-result-headline .message {
    margin-bottom: 24px;
    padding: 11px var(--ui-block-padding-sm);
}

.domain-checker-result-headline .message .message-icon {
    height: 40px;
    width: 40px;
    min-width: 40px;
}

.domain-checker-result-headline .message .message-icon i {
    font-size: var(--font-size-lg);
}

.message-title {
    font-size: 16px;
}

.message-success .message-text,
.message-success .message-title {
    color: #2B9F46;
}

@media (min-width: 992px) {
    .message-h .message-content>*+*,
    .message-h>*+* {
        margin-left: var(--ui-block-spacing-sm);
    }
}


.whois-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.whois-domain-title {
    font-size: 24px;
    font-weight: 600;
    color: #17191C;
    margin: 0;
}

/* WHOIS Sections */
#whois-lookup {
    margin: 64px 0;
}

.whois-section {
    margin-bottom: 20px;
}

.whois-section:last-child {
    margin-bottom: 0;
}

.whois-section-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: var(--headings-margin-bottom);
}

.whois-section-title {
    line-height: initial;
    font-weight: 600;
    margin-bottom: 0;
}

.whois-section-domain {
    font-size: var(--font-size-xxlg);
    margin-bottom: 1px;
}

/* Copy Wrapper and Icon */
.copy-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-icon.btn-icon {
    width: 16px;
    height: 16px;
}

.copy-icon svg {
    width: 100%;
    height: 100%;
}

.whois-data-value .copy-wrapper {
    margin-left: 6px;
}

.copy-status {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.copy-status.success {
    color: #2B9F46;
}

.copy-status.error {
    color: #DC3545;
}

.whois-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* WHOIS Data Grid */
.whois-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px 47px;
}

.whois-data-item {
    color: #17191C;
    line-height: initial;
}

.whois-data-item-full {
    grid-column: 1 / -1;
}

.whois-data-label {
    margin-bottom: 4px;
}

.whois-data-value {
    display: flex;
    align-items: center;
    font-weight: var(--font-weight-medium);
}

/* Status List */
.whois-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Nameservers Table */
.nameservers-table-container {
    display: flex;
    gap: 0;
}

.nameservers-table {
    width: 100%;
    display: flex;
    gap: 0;
}

.nameservers-col {
    flex: 1;
}

.nameservers-col .table-header {
    padding: 17px 24px;
    border-bottom: 1px solid #dde0e3;
    color: #868b96;
}

.nameservers-col .table-cell {
    padding: 17px 24px;
    border-bottom: 1px solid #dde0e3;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F2821B;
}

/* Contact Information */
.contact-subsection {
    margin-bottom: 24px;
}

.contact-subsection:last-child {
    margin-bottom: 0;
}

.contact-subsection-title {
    font-weight: 500;
    color: #000;
    margin-bottom: 16px;
}

/* Skeletons */
#whoisLookupResults .skeleton {
    animation: skeleton-loading 1.5s ease-in-out infinite;
    background-color: #F7F7F8;
    height: 34px;
}

#whoisLookupResults .skeleton + .skeleton {
    margin-top: 16px;
}

@keyframes skeleton-loading {
    0% {
        background-color: #F7F7F8;
    }
    50% {
        background-color: #f2f2f5;
    }
    100% {
        background-color: #F7F7F8;
    }
}


@media (max-width: 768px) {
    .whois-results {
        padding: 20px;
    }

    .whois-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .whois-data-grid {
        grid-template-columns: 1fr;
    }

    .nameservers-table {
        flex-direction: column;
    }

    .nameservers-col .table-header {
        padding: 8px 15px;
    }

    .nameservers-col .table-cell {
        padding: 8px 15px;
    }

    /* Responsive for test.tpl styles */
    .content-block {
        padding: 20px;
    }

    .info-row {
        flex-direction: column;
    }

    .table-container {
        flex-direction: column;
    }

    .table-header,
    .table-cell {
        padding: 8px 15px;
    }
}

.bottom-action-sticky.bottom-action-sticky--sticky {
    position: sticky;
    border-top: 2px solid #f2821b;
    height: calc(var(--bottom-action-sticky-height) * 1.1);
    box-shadow: none;
    @media screen and (min-width: 768px) {
        height: var(--bottom-action-sticky-height);
    }
}

.bottom-action-sticky-wrapper {
    max-width: var(--search-group-max-width) !important;

    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.bottom-action-sticky-wrapper .sticky-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end !important;
    justify-content: center;
    grid-row-gap: 12px;

    @media screen and (min-width: 768px) {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center !important;
    }
}

#stickyPrice {
    font-weight: 400;
    color: #17191c;
    font-size: 16px;
    line-height: 16px;
    margin-right: 0px;

    @media screen and (min-width: 768px) {
        margin-right: 50px;
        font-size: 24px;
        line-height: 16px;
    }
}

/* Additional styles from test.tpl */
.domain-title {
    font-size: 24px;
    color: #000;
    line-height: 28px;
    margin-bottom: 6px;
}

.info-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 14px;
    color: #000;
    font-weight: 400;
}

.info-value {
    font-size: 14px;
    color: #000;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-value.link {
    color: #f2821b;
}

.status-text {
    font-size: 14px;
    color: #000;
    font-weight: 500;
    line-height: 1.5;
}

.contact-section {
    margin-bottom: 24px;
}

.contact-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin-bottom: 16px;
}

#domain-content {
    display: none;
}

#domain-content:not(.hidden) {
    display: block;
}

/* Raw WHOIS Data Collapse */
.whois-raw-section {
    margin-bottom: 0;
}

.whois-raw-collapse {
    border: 1px solid #dde0e3;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.whois-raw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.whois-raw-header:hover {
    background-color: #f8f9fa;
}

.whois-raw-header .whois-section-title {
    font-size: 16px;
    font-weight: 500;
    color: #17191C;
    margin: 0;
}

.whois-raw-arrow {
    transition: transform 0.3s ease;
    color: #868b96;
    flex-shrink: 0;
}

.whois-raw-collapse.is-open .whois-raw-arrow {
    transform: rotate(180deg);
}

.whois-raw-content {
    padding: 0 20px 24px;
}

.whois-raw-text {
    background: #fff;
    padding: 0;
    font-size: var(--font-size-base);
    font-family: var(--font-family-base), sans-serif;
    color: #17191C;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* WHOIS Modal */
#whoisModal {
    padding: 0!important;
}

#whoisModal .modal-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
}

#whoisModal .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
    margin: 0;
}

#whoisModal .modal-body {
    overflow-y: auto;
}

#whoisModal .close {
    position: fixed;
    width: 41px;
    height: 41px;
    right: 40px;
    top: 48px;
}

#whoisModal .lm-close {
    font-size: 42px !important;
    color: #000000;
}
