/**
 * CravenDunnill_TileSamples extension
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 *
 * @category   CravenDunnill
 * @package    CravenDunnill_TileSamples
 * @copyright  Copyright (c) 2025 CravenDunnill
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */

.tile-sample-button-container {
    margin: 15px 0;
}

.tile-sample-button-container .tile-sample-button {
    background-color: #ffffff !important;
    border-color: #002C5A !important;
    color: #002C5A !important;
    width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.tile-sample-button-container .tile-sample-button:hover {
    background-color: #002C5A !important;
    border-color: #002C5A !important;
    color: #ffffff !important;
}

.tile-sample-button-container .tile-sample-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.tile-sample-button-container .tile-sample-button-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #002C5A !important;
    border-color: #002C5A !important;
    color: #ffffff !important;
}

.tile-sample-button-container .tile-sample-button-disabled:hover {
    background-color: #002C5A !important;
    border-color: #002C5A !important;
    color: #ffffff !important;
}

.tick-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background-color: #ffffff;
    color: #002C5A;
    margin-right: 5px;
    font-style: normal;
    font-weight: bold;
    vertical-align: middle;
}

/* Loading state for AJAX */
.tile-sample-button-container .loading {
    position: relative;
}

.tile-sample-button-container .loading:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #002C5A;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .tile-sample-button-container .tile-sample-button {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}